C# 클래스 AlbLib.SaveGame.Backpack

상속: Inventory
파일 보기 프로젝트 열기: IllidanS4/AlbLib 1 사용 예제들

공개 메소드들

메소드 설명
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