C# Class Ultima.Art

Afficher le fichier Open project: polserver/poltools Class Usage Examples

Méthodes publiques

Свойство Type Description
Modified bool

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

GetIdxLength() public static méthode

public static GetIdxLength ( ) : int
Résultat int

GetLand() public static méthode

Returns Bitmap of LandTile (with Cache)
public static GetLand ( int index ) : Bitmap
index int
Résultat System.Drawing.Bitmap

GetLand() public static méthode

Returns Bitmap of LandTile (with Cache) and verdata bool
public static GetLand ( int index, bool &patched ) : Bitmap
index int
patched bool
Résultat System.Drawing.Bitmap

GetLegalItemID() public static méthode

public static GetLegalItemID ( int itemID, bool checkmaxid = true ) : ushort
itemID int
checkmaxid bool
Résultat ushort

GetMaxItemID() public static méthode

public static GetMaxItemID ( ) : int
Résultat int

GetRawLand() public static méthode

public static GetRawLand ( int index ) : byte[]
index int
Résultat byte[]

GetRawStatic() public static méthode

public static GetRawStatic ( int index ) : byte[]
index int
Résultat byte[]

GetStatic() public static méthode

Returns Bitmap of Static (with Cache)
public static GetStatic ( int index, bool checkmaxid = true ) : Bitmap
index int
checkmaxid bool
Résultat System.Drawing.Bitmap

GetStatic() public static méthode

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
Résultat System.Drawing.Bitmap

IsUOAHS() public static méthode

public static IsUOAHS ( ) : bool
Résultat bool

IsValidLand() public static méthode

Tests if LandTile is definied
public static IsValidLand ( int index ) : bool
index int
Résultat bool

IsValidStatic() public static méthode

Tests if Static is definied (width and hight check)
public static IsValidStatic ( int index ) : bool
index int
Résultat bool

Measure() public static méthode

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
Résultat void

Reload() public static méthode

ReReads Art.mul
public static Reload ( ) : void
Résultat void

RemoveLand() public static méthode

Removes Land index m_Removed
public static RemoveLand ( int index ) : void
index int
Résultat void

RemoveStatic() public static méthode

Removes Static index m_Removed
public static RemoveStatic ( int index ) : void
index int
Résultat void

ReplaceLand() public static méthode

Sets bmp of index in m_Cache of Land
public static ReplaceLand ( int index, Bitmap bmp ) : void
index int
bmp System.Drawing.Bitmap
Résultat void

ReplaceStatic() public static méthode

Sets bmp of index in m_Cache of Static
public static ReplaceStatic ( int index, Bitmap bmp ) : void
index int
bmp System.Drawing.Bitmap
Résultat void

Save() public static méthode

Saves mul
public static Save ( string path ) : void
path string
Résultat void

Property Details

Modified public_oe static_oe property

public static bool Modified
Résultat bool