C# 클래스 Aura.Channel.World.Inventory.BankInventory

파일 보기 프로젝트 열기: aura-project/aura 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AddGold ( Creature creature, int amount ) : int

Adds gold to bank, sends update, and returns the new amount.

AddTab ( string name, long creatureId, BankTabRace race, int width, int height ) : void

Adds bank tab pocket.

BankInventory ( ) : Aura.Channel.Network.Sending

Creates new account bank.

DepositItem ( Creature creature, long itemEntityId, string bankId, string tabName, int x, int y ) : bool

Moves item from creature's inventory into bank.

GetAllItems ( ) : IList

Returns all items in the bank.

GetItem ( long itemEntityId ) : Item

Returns item with the given entity id, or null if the item doesn't exist.

GetName ( string bankId ) : string

Returns name for the bank with the given id, or null if the bank doesn't exist.

GetTabItems ( string tabName ) : IList

Returns all items in specified tab. Returns an empty list if tab doesn't exist.

GetTabList ( ) : IList

Returns thread-safe list of tabs.

GetTabList ( BankTabRace race ) : IList

Returns thread-safe list of tabs.

GetTransferFee ( Item item, string fromBankId, string toBankId ) : int

Returns the gold fee to transfer an item from one bank to the other. The parameters are the ids.

Unofficial, but works well.

GetTransferTime ( string fromBankId, string toBankId ) : int

Returns the time it takes to transfer an item from one bank to the other in milliseconds.

Unofficial, but works well.

InitAdd ( string tabName, Item item ) : bool

Adds item to tab without any checks (only use for initialization).

RemoveGold ( Creature creature, int amount ) : int

Removes gold to bank, sends update, and returns the new amount.

Transfer ( Creature creature, long itemEntityId, bool instantTransfer ) : bool

Attempts to start a transfer of the given item to the bank the creature is currently using.

WithdrawItem ( Creature creature, string tabName, long itemEntityId ) : bool

Moves item with given id from bank to creature's cursor pocket. Returns whether it was successful or not.

메소드 상세

AddGold() 공개 메소드

Adds gold to bank, sends update, and returns the new amount.
public AddGold ( Creature creature, int amount ) : int
creature Aura.Channel.World.Entities.Creature Creature removing gold (needed for updating)
amount int Amount of gold
리턴 int

AddTab() 공개 메소드

Adds bank tab pocket.
public AddTab ( string name, long creatureId, BankTabRace race, int width, int height ) : void
name string Name of the tab (character)
creatureId long
race BankTabRace Race filter id (1|2|3)
width int Width of the tab pocket
height int Height of the tab pocket
리턴 void

BankInventory() 공개 메소드

Creates new account bank.
public BankInventory ( ) : Aura.Channel.Network.Sending
리턴 Aura.Channel.Network.Sending

DepositItem() 공개 메소드

Moves item from creature's inventory into bank.
public DepositItem ( Creature creature, long itemEntityId, string bankId, string tabName, int x, int y ) : bool
creature Aura.Channel.World.Entities.Creature
itemEntityId long
bankId string
tabName string
x int
y int
리턴 bool

GetAllItems() 공개 메소드

Returns all items in the bank.
public GetAllItems ( ) : IList
리턴 IList

GetItem() 공개 메소드

Returns item with the given entity id, or null if the item doesn't exist.
public GetItem ( long itemEntityId ) : Item
itemEntityId long
리턴 Item

GetName() 공개 정적인 메소드

Returns name for the bank with the given id, or null if the bank doesn't exist.
public static GetName ( string bankId ) : string
bankId string
리턴 string

GetTabItems() 공개 메소드

Returns all items in specified tab. Returns an empty list if tab doesn't exist.
public GetTabItems ( string tabName ) : IList
tabName string
리턴 IList

GetTabList() 공개 메소드

Returns thread-safe list of tabs.
public GetTabList ( ) : IList
리턴 IList

GetTabList() 공개 메소드

Returns thread-safe list of tabs.
public GetTabList ( BankTabRace race ) : IList
race BankTabRace
리턴 IList

GetTransferFee() 공개 정적인 메소드

Returns the gold fee to transfer an item from one bank to the other. The parameters are the ids.
Unofficial, but works well.
public static GetTransferFee ( Item item, string fromBankId, string toBankId ) : int
item Item Item that is to be transferred.
fromBankId string The id of the bank the item is at.
toBankId string The id of the bank the item is transferred to.
리턴 int

GetTransferTime() 공개 정적인 메소드

Returns the time it takes to transfer an item from one bank to the other in milliseconds.
Unofficial, but works well.
public static GetTransferTime ( string fromBankId, string toBankId ) : int
fromBankId string The id of the bank the item is at.
toBankId string The id of the bank the item is transferred to.
리턴 int

InitAdd() 공개 메소드

Adds item to tab without any checks (only use for initialization).
public InitAdd ( string tabName, Item item ) : bool
tabName string
item Item
리턴 bool

RemoveGold() 공개 메소드

Removes gold to bank, sends update, and returns the new amount.
public RemoveGold ( Creature creature, int amount ) : int
creature Aura.Channel.World.Entities.Creature Creature adding gold (needed for updating)
amount int Amount of gold
리턴 int

Transfer() 공개 메소드

Attempts to start a transfer of the given item to the bank the creature is currently using.
public Transfer ( Creature creature, long itemEntityId, bool instantTransfer ) : bool
creature Aura.Channel.World.Entities.Creature
itemEntityId long
instantTransfer bool
리턴 bool

WithdrawItem() 공개 메소드

Moves item with given id from bank to creature's cursor pocket. Returns whether it was successful or not.
public WithdrawItem ( Creature creature, string tabName, long itemEntityId ) : bool
creature Aura.Channel.World.Entities.Creature
tabName string
itemEntityId long
리턴 bool