C# Class AlbLib.SaveGame.Equipment

Inheritance: Inventory
Datei anzeigen Open project: IllidanS4/AlbLib Class Usage Examples

Public Properties

Property Type Description
Chest ItemStack
Feet ItemStack
Head ItemStack
LeftFinger ItemStack
LeftHand ItemStack
Neck ItemStack
RightFinger ItemStack
RightHand ItemStack
Tail ItemStack

Public Methods

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

Removes all items from inventory.
public Clear ( ) : void
return void

Equipment() public method

Creates empty inventory.
public Equipment ( ) : System
return System

Equipment() public method

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

GetEnumerator() public method

Enumerates through all items in inventory.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

ToRawData() public method

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

this() public method

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

Property Details

Chest public_oe property

Item on chest.
public ItemStack,AlbLib.SaveGame Chest
return ItemStack

Feet public_oe property

Item on feet.
public ItemStack,AlbLib.SaveGame Feet
return ItemStack

Head public_oe property

Item on head.
public ItemStack,AlbLib.SaveGame Head
return ItemStack

LeftFinger public_oe property

Item on left finger.
public ItemStack,AlbLib.SaveGame LeftFinger
return ItemStack

LeftHand public_oe property

Item in left hand.
public ItemStack,AlbLib.SaveGame LeftHand
return ItemStack

Neck public_oe property

Item on neck.
public ItemStack,AlbLib.SaveGame Neck
return ItemStack

RightFinger public_oe property

Item on right finger.
public ItemStack,AlbLib.SaveGame RightFinger
return ItemStack

RightHand public_oe property

Item in right hand.
public ItemStack,AlbLib.SaveGame RightHand
return ItemStack

Tail public_oe property

Item in tail.
public ItemStack,AlbLib.SaveGame Tail
return ItemStack