C# Класс AlbLib.SaveGame.Backpack

Наследование: Inventory
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Backpack() публичный Метод

Creates empty inventory.
public Backpack ( ) : System
Результат System

Backpack() публичный Метод

Loads inventory from byte array.
public Backpack ( byte data, int offset ) : System
data byte /// Byte array containing inventory items. ///
offset int /// Position of inventory. ///
Результат System

Clear() публичный Метод

Removes all items from inventory.
public Clear ( ) : void
Результат void

GetEnumerator() публичный Метод

Enumerates through all items in inventory.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

ToRawData() публичный Метод

Converts items to byte array.
public ToRawData ( ) : byte[]
Результат byte[]

this() публичный Метод

Accesses item using item index.
public this ( int index ) : SaveGame.ItemStack
index int /// Item index in range from 0 to 23. ///
Результат SaveGame.ItemStack

this() публичный Метод

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. ///
Результат SaveGame.ItemStack