C# Class Ultima.Art

Datei anzeigen Open project: polserver/poltools Class Usage Examples

Public Properties

Property Type Description
Modified bool

Public Methods

Method 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

Method 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 method

public static GetIdxLength ( ) : int
return int

GetLand() public static method

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

GetLand() public static method

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

GetLegalItemID() public static method

public static GetLegalItemID ( int itemID, bool checkmaxid = true ) : ushort
itemID int
checkmaxid bool
return ushort

GetMaxItemID() public static method

public static GetMaxItemID ( ) : int
return int

GetRawLand() public static method

public static GetRawLand ( int index ) : byte[]
index int
return byte[]

GetRawStatic() public static method

public static GetRawStatic ( int index ) : byte[]
index int
return byte[]

GetStatic() public static method

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

GetStatic() public static method

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
return System.Drawing.Bitmap

IsUOAHS() public static method

public static IsUOAHS ( ) : bool
return bool

IsValidLand() public static method

Tests if LandTile is definied
public static IsValidLand ( int index ) : bool
index int
return bool

IsValidStatic() public static method

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

Measure() public static method

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
return void

Reload() public static method

ReReads Art.mul
public static Reload ( ) : void
return void

RemoveLand() public static method

Removes Land index m_Removed
public static RemoveLand ( int index ) : void
index int
return void

RemoveStatic() public static method

Removes Static index m_Removed
public static RemoveStatic ( int index ) : void
index int
return void

ReplaceLand() public static method

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

ReplaceStatic() public static method

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

Save() public static method

Saves mul
public static Save ( string path ) : void
path string
return void

Property Details

Modified public_oe static_oe property

public static bool Modified
return bool