C# Класс Ultima.Art

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

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

Свойство Тип Описание
Modified bool

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

Метод Описание
GetIdxLength ( ) : int
GetLand ( int index ) : Bitmap

Returns Bitmap of LandTile (with Cache)

GetLand ( int index, bool &patched ) : Bitmap

Returns Bitmap of LandTile (with Cache) and verdata bool

GetLegalItemID ( int itemID, bool checkmaxid = true ) : ushort
GetMaxItemID ( ) : int
GetRawLand ( int index ) : byte[]
GetRawStatic ( int index ) : byte[]
GetStatic ( int index, bool checkmaxid = true ) : Bitmap

Returns Bitmap of Static (with Cache)

GetStatic ( int index, bool &patched, bool checkmaxid = true ) : Bitmap

Returns Bitmap of Static (with Cache) and verdata bool

IsUOAHS ( ) : bool
IsValidLand ( int index ) : bool

Tests if LandTile is definied

IsValidStatic ( int index ) : bool

Tests if Static is definied (width and hight check)

Measure ( Bitmap bmp, int &xMin, int &yMin, int &xMax, int &yMax ) : void
Reload ( ) : void

ReReads Art.mul

RemoveLand ( int index ) : void

Removes Land index m_Removed

RemoveStatic ( int index ) : void

Removes Static index m_Removed

ReplaceLand ( int index, Bitmap bmp ) : void

Sets bmp of index in m_Cache of Land

ReplaceStatic ( int index, Bitmap bmp ) : void

Sets bmp of index in m_Cache of Static

Save ( string path ) : void

Saves mul

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

Метод Описание
Art ( ) : System.Collections
LoadLand ( Stream stream, int length ) : Bitmap
LoadStatic ( Stream stream, int length ) : Bitmap
compareSaveImagesLand ( byte newchecksum, CheckSums &sum ) : bool
compareSaveImagesStatic ( byte newchecksum, CheckSums &sum ) : bool

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

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

public static GetIdxLength ( ) : int
Результат int

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

Returns Bitmap of LandTile (with Cache)
public static GetLand ( int index ) : Bitmap
index int
Результат System.Drawing.Bitmap

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

Returns Bitmap of LandTile (with Cache) and verdata bool
public static GetLand ( int index, bool &patched ) : Bitmap
index int
patched bool
Результат System.Drawing.Bitmap

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

public static GetLegalItemID ( int itemID, bool checkmaxid = true ) : ushort
itemID int
checkmaxid bool
Результат ushort

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

public static GetMaxItemID ( ) : int
Результат int

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

public static GetRawLand ( int index ) : byte[]
index int
Результат byte[]

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

public static GetRawStatic ( int index ) : byte[]
index int
Результат byte[]

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

Returns Bitmap of Static (with Cache)
public static GetStatic ( int index, bool checkmaxid = true ) : Bitmap
index int
checkmaxid bool
Результат System.Drawing.Bitmap

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

Returns Bitmap of Static (with Cache) and verdata bool
public static GetStatic ( int index, bool &patched, bool checkmaxid = true ) : Bitmap
index int
patched bool
checkmaxid bool
Результат System.Drawing.Bitmap

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

public static IsUOAHS ( ) : bool
Результат bool

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

Tests if LandTile is definied
public static IsValidLand ( int index ) : bool
index int
Результат bool

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

Tests if Static is definied (width and hight check)
public static IsValidStatic ( int index ) : bool
index int
Результат bool

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

public static Measure ( Bitmap bmp, int &xMin, int &yMin, int &xMax, int &yMax ) : void
bmp System.Drawing.Bitmap
xMin int
yMin int
xMax int
yMax int
Результат void

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

ReReads Art.mul
public static Reload ( ) : void
Результат void

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

Removes Land index m_Removed
public static RemoveLand ( int index ) : void
index int
Результат void

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

Removes Static index m_Removed
public static RemoveStatic ( int index ) : void
index int
Результат void

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

Sets bmp of index in m_Cache of Land
public static ReplaceLand ( int index, Bitmap bmp ) : void
index int
bmp System.Drawing.Bitmap
Результат void

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

Sets bmp of index in m_Cache of Static
public static ReplaceStatic ( int index, Bitmap bmp ) : void
index int
bmp System.Drawing.Bitmap
Результат void

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

Saves mul
public static Save ( string path ) : void
path string
Результат void

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

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

public static bool Modified
Результат bool