C# Класс Ultima.Map

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Custom Map
Felucca Map
Ilshenar Map
Malas Map
TerMur Map
Tokuno Map
Trammel Map

Открытые методы

Метод Описание
DefragStatics ( string path, Map map, int width, int height, bool remove ) : void
GetImage ( int x, int y, int width, int height ) : Bitmap

Returns Bitmap with Statics

GetImage ( int x, int y, int width, int height, bool statics ) : Bitmap

Returns Bitmap

GetImage ( int x, int y, int width, int height, Bitmap bmp ) : void

Draws in given Bitmap with Statics

GetImage ( int x, int y, int width, int height, Bitmap bmp, bool statics ) : void

Draws in given Bitmap

IsCached ( bool statics ) : bool
Map ( int fileIndex, int mapID, int width, int height ) : System
Map ( string path, int fileIndex, int mapID, int width, int height ) : System
PreloadRenderedBlock ( int x, int y, bool statics ) : void
Reload ( ) : void

Sets cache-vars to null

ReportInvalidMapIDs ( string reportfile ) : void
ReportInvisStatics ( string reportfile ) : void
ResetCache ( ) : void
RewriteMap ( string path, int map, int width, int height ) : void
StartUpSetDiff ( bool value ) : void

Приватные методы

Метод Описание
GetRenderedBlock ( int x, int y, bool statics ) : short[]
RenderBlock ( int x, int y, bool drawStatics, bool diff ) : short[]

Описание методов

DefragStatics() публичный статический Метод

public static DefragStatics ( string path, Map map, int width, int height, bool remove ) : void
path string
map Map
width int
height int
remove bool
Результат void

GetImage() публичный Метод

Returns Bitmap with Statics
public GetImage ( int x, int y, int width, int height ) : Bitmap
x int 8x8 Block
y int 8x8 Block
width int 8x8 Block
height int 8x8 Block
Результат System.Drawing.Bitmap

GetImage() публичный Метод

Returns Bitmap
public GetImage ( int x, int y, int width, int height, bool statics ) : Bitmap
x int 8x8 Block
y int 8x8 Block
width int 8x8 Block
height int 8x8 Block
statics bool 8x8 Block
Результат System.Drawing.Bitmap

GetImage() публичный Метод

Draws in given Bitmap with Statics
public GetImage ( int x, int y, int width, int height, Bitmap bmp ) : void
x int 8x8 Block
y int 8x8 Block
width int 8x8 Block
height int 8x8 Block
bmp System.Drawing.Bitmap 8x8 Block
Результат void

GetImage() публичный Метод

Draws in given Bitmap
public GetImage ( int x, int y, int width, int height, Bitmap bmp, bool statics ) : void
x int 8x8 Block
y int 8x8 Block
width int 8x8 Block
height int 8x8 Block
bmp System.Drawing.Bitmap
statics bool
Результат void

IsCached() публичный Метод

public IsCached ( bool statics ) : bool
statics bool
Результат bool

Map() публичный Метод

public Map ( int fileIndex, int mapID, int width, int height ) : System
fileIndex int
mapID int
width int
height int
Результат System

Map() публичный Метод

public Map ( string path, int fileIndex, int mapID, int width, int height ) : System
path string
fileIndex int
mapID int
width int
height int
Результат System

PreloadRenderedBlock() публичный Метод

public PreloadRenderedBlock ( int x, int y, bool statics ) : void
x int
y int
statics bool
Результат void

Reload() публичный статический Метод

Sets cache-vars to null
public static Reload ( ) : void
Результат void

ReportInvalidMapIDs() публичный Метод

public ReportInvalidMapIDs ( string reportfile ) : void
reportfile string
Результат void

ReportInvisStatics() публичный Метод

public ReportInvisStatics ( string reportfile ) : void
reportfile string
Результат void

ResetCache() публичный Метод

public ResetCache ( ) : void
Результат void

RewriteMap() публичный статический Метод

public static RewriteMap ( string path, int map, int width, int height ) : void
path string
map int
width int
height int
Результат void

StartUpSetDiff() публичный статический Метод

public static StartUpSetDiff ( bool value ) : void
value bool
Результат void

Описание свойств

Custom публичное статическое свойство

public static Map,Ultima Custom
Результат Map

Felucca публичное статическое свойство

public static Map,Ultima Felucca
Результат Map

Ilshenar публичное статическое свойство

public static Map,Ultima Ilshenar
Результат Map

Malas публичное статическое свойство

public static Map,Ultima Malas
Результат Map

TerMur публичное статическое свойство

public static Map,Ultima TerMur
Результат Map

Tokuno публичное статическое свойство

public static Map,Ultima Tokuno
Результат Map

Trammel публичное статическое свойство

public static Map,Ultima Trammel
Результат Map