C# Class GameFramework.ItemBag

Mostra file Open project: dreamanlan/CSharpGameFramework

Public Methods

Method Description
AddItemData ( int itemId, int num ) : bool
DelItemData ( int itemId ) : void
DelItemData ( ulong itemGuid ) : void
GetFreeCount ( ) : int
GetItemData ( int itemId ) : ItemInfo
GetItemData ( ulong guid ) : ItemInfo
GetItemNum ( int item_id ) : int
ReduceItemData ( int itemId, int num ) : void
Reset ( ) : void
ResetItemData ( ) : void

Method Details

AddItemData() public method

public AddItemData ( int itemId, int num ) : bool
itemId int
num int
return bool

DelItemData() public method

public DelItemData ( int itemId ) : void
itemId int
return void

DelItemData() public method

public DelItemData ( ulong itemGuid ) : void
itemGuid ulong
return void

GetFreeCount() public method

public GetFreeCount ( ) : int
return int

GetItemData() public method

public GetItemData ( int itemId ) : ItemInfo
itemId int
return ItemInfo

GetItemData() public method

public GetItemData ( ulong guid ) : ItemInfo
guid ulong
return ItemInfo

GetItemNum() public method

public GetItemNum ( int item_id ) : int
item_id int
return int

ReduceItemData() public method

public ReduceItemData ( int itemId, int num ) : void
itemId int
num int
return void

Reset() public method

public Reset ( ) : void
return void

ResetItemData() public method

public ResetItemData ( ) : void
return void