C# Class AlbLib.SaveGame.Equipment

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

Méthodes publiques

Свойство Type Description
Chest ItemStack
Feet ItemStack
Head ItemStack
LeftFinger ItemStack
LeftHand ItemStack
Neck ItemStack
RightFinger ItemStack
RightHand ItemStack
Tail ItemStack

Méthodes publiques

Méthode Description
Clear ( ) : void

Removes all items from inventory.

Equipment ( ) : System

Creates empty inventory.

Equipment ( byte data, int offset ) : System

Loads inventory from byte array.

GetEnumerator ( ) : IEnumerator

Enumerates through all items in inventory.

ToRawData ( ) : byte[]

Converts items to byte array.

this ( int index ) : ItemStack

Accesses item using item index.

Method Details

Clear() public méthode

Removes all items from inventory.
public Clear ( ) : void
Résultat void

Equipment() public méthode

Creates empty inventory.
public Equipment ( ) : System
Résultat System

Equipment() public méthode

Loads inventory from byte array.
public Equipment ( byte data, int offset ) : System
data byte /// Byte array containing inventory items. ///
offset int /// Position of inventory. ///
Résultat System

GetEnumerator() public méthode

Enumerates through all items in inventory.
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

ToRawData() public méthode

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

this() public méthode

Accesses item using item index.
public this ( int index ) : ItemStack
index int /// Item index in range from 0 to 8. ///
Résultat ItemStack

Property Details

Chest public_oe property

Item on chest.
public ItemStack,AlbLib.SaveGame Chest
Résultat ItemStack

Feet public_oe property

Item on feet.
public ItemStack,AlbLib.SaveGame Feet
Résultat ItemStack

Head public_oe property

Item on head.
public ItemStack,AlbLib.SaveGame Head
Résultat ItemStack

LeftFinger public_oe property

Item on left finger.
public ItemStack,AlbLib.SaveGame LeftFinger
Résultat ItemStack

LeftHand public_oe property

Item in left hand.
public ItemStack,AlbLib.SaveGame LeftHand
Résultat ItemStack

Neck public_oe property

Item on neck.
public ItemStack,AlbLib.SaveGame Neck
Résultat ItemStack

RightFinger public_oe property

Item on right finger.
public ItemStack,AlbLib.SaveGame RightFinger
Résultat ItemStack

RightHand public_oe property

Item in right hand.
public ItemStack,AlbLib.SaveGame RightHand
Résultat ItemStack

Tail public_oe property

Item in tail.
public ItemStack,AlbLib.SaveGame Tail
Résultat ItemStack