C# Class AlbLib.SaveGame.ItemStack

Show file Open project: IllidanS4/AlbLib Class Usage Examples

Public Methods

Method Description
Equals ( ItemStack stack ) : bool

Compares two item stacks.

Equals ( object obj ) : bool

Compares two item stacks.

GetHashCode ( ) : int

Computes unique hash code for this item stack.

ItemStack ( byte data, int offset ) : System

Loads an item stack from byte array.

ItemStack ( byte count, short type ) : System

Creates new item stack from type and count.

ToRawData ( ) : byte[]

Converts item stack to byte array.

ToString ( ) : string

Converts item stack to string.

operator ( ) : bool

Compares two item stacks.

Method Details

Equals() public method

Compares two item stacks.
public Equals ( ItemStack stack ) : bool
stack ItemStack
return bool

Equals() public method

Compares two item stacks.
public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

Computes unique hash code for this item stack.
public GetHashCode ( ) : int
return int

ItemStack() public method

Loads an item stack from byte array.
public ItemStack ( byte data, int offset ) : System
data byte /// Byte array containing item informations. ///
offset int /// Offset where informations are located. ///
return System

ItemStack() public method

Creates new item stack from type and count.
public ItemStack ( byte count, short type ) : System
count byte /// Count of items in stack. ///
type short /// Type of item or items. ///
return System

ToRawData() public method

Converts item stack to byte array.
public ToRawData ( ) : byte[]
return byte[]

ToString() public method

Converts item stack to string.
public ToString ( ) : string
return string

operator() public static method

Compares two item stacks.
public static operator ( ) : bool
return bool