C# Class AlbLib.SaveGame.ItemStack

Afficher le fichier Open project: IllidanS4/AlbLib Class Usage Examples

Méthodes publiques

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

Compares two item stacks.
public Equals ( ItemStack stack ) : bool
stack ItemStack
Résultat bool

Equals() public méthode

Compares two item stacks.
public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

Computes unique hash code for this item stack.
public GetHashCode ( ) : int
Résultat int

ItemStack() public méthode

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

ItemStack() public méthode

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

ToRawData() public méthode

Converts item stack to byte array.
public ToRawData ( ) : byte[]
Résultat byte[]

ToString() public méthode

Converts item stack to string.
public ToString ( ) : string
Résultat string

operator() public static méthode

Compares two item stacks.
public static operator ( ) : bool
Résultat bool