C# Class AlbLib.SaveGame.Backpack

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

Méthodes publiques

Méthode Description
Backpack ( ) : System

Creates empty inventory.

Backpack ( byte data, int offset ) : System

Loads inventory from byte array.

Clear ( ) : void

Removes all items from inventory.

GetEnumerator ( ) : IEnumerator

Enumerates through all items in inventory.

ToRawData ( ) : byte[]

Converts items to byte array.

this ( int index ) : SaveGame.ItemStack

Accesses item using item index.

this ( int x, int y ) : SaveGame.ItemStack

Accesses item using x and y displayed position.

Method Details

Backpack() public méthode

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

Backpack() public méthode

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

Clear() public méthode

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

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 ) : SaveGame.ItemStack
index int /// Item index in range from 0 to 23. ///
Résultat SaveGame.ItemStack

this() public méthode

Accesses item using x and y displayed position.
public this ( int x, int y ) : SaveGame.ItemStack
x int /// Item X position between 0 and 3. ///
y int /// Item Y position between 0 and 5. ///
Résultat SaveGame.ItemStack