C# Class Codebreak.Service.World.Game.Entity.Inventory.AbstractInventory

Inheritance: Codebreak.Service.World.Network.MessageDispatcher
Show file Open project: hussein-aitlahcen/codebreak

Public Methods

Method Description
AddItem ( ItemDAO item, bool merge = true ) : bool

AddKamas ( long value ) : void

Dispose ( ) : void

GetItem ( long id ) : ItemDAO

HasTemplate ( int templateId ) : bool

HasTemplateEquiped ( int templateId ) : bool

IsEquipedOf ( long guid, int templateId ) : bool

MoveQuantity ( ItemDAO item, int quantity, ItemSlotEnum slot = ItemSlotEnum.SLOT_INVENTORY ) : ItemDAO

NotHasTemplate ( int templateId ) : bool

OnItemAdded ( ItemDAO item ) : void

OnItemQuantity ( long itemId, int quantity ) : void

OnItemRemoved ( long itemId ) : void

OnKamasAdded ( long value ) : void

OnKamasSubstracted ( long value ) : void

OnOwnerChange ( ItemDAO item ) : void

RemoveItem ( long itemId, int quantity = 1 ) : ItemDAO

RemoveItems ( ) : IEnumerable

SerializeAs_BagContent ( StringBuilder message ) : void

SubKamas ( long value ) : void

TryMerge ( ItemDAO item ) : bool

Method Details

AddItem() public method

public AddItem ( ItemDAO item, bool merge = true ) : bool
item ItemDAO
merge bool
return bool

AddKamas() public method

public AddKamas ( long value ) : void
value long
return void

Dispose() public method

public Dispose ( ) : void
return void

GetItem() public method

public GetItem ( long id ) : ItemDAO
id long
return ItemDAO

HasTemplate() public method

public HasTemplate ( int templateId ) : bool
templateId int
return bool

HasTemplateEquiped() public method

public HasTemplateEquiped ( int templateId ) : bool
templateId int
return bool

IsEquipedOf() public method

public IsEquipedOf ( long guid, int templateId ) : bool
guid long
templateId int
return bool

MoveQuantity() public method

public MoveQuantity ( ItemDAO item, int quantity, ItemSlotEnum slot = ItemSlotEnum.SLOT_INVENTORY ) : ItemDAO
item ItemDAO
quantity int
slot ItemSlotEnum
return ItemDAO

NotHasTemplate() public method

public NotHasTemplate ( int templateId ) : bool
templateId int
return bool

OnItemAdded() public method

public OnItemAdded ( ItemDAO item ) : void
item ItemDAO
return void

OnItemQuantity() public method

public OnItemQuantity ( long itemId, int quantity ) : void
itemId long
quantity int
return void

OnItemRemoved() public method

public OnItemRemoved ( long itemId ) : void
itemId long
return void

OnKamasAdded() public method

public OnKamasAdded ( long value ) : void
value long
return void

OnKamasSubstracted() public method

public OnKamasSubstracted ( long value ) : void
value long
return void

OnOwnerChange() public method

public OnOwnerChange ( ItemDAO item ) : void
item ItemDAO
return void

RemoveItem() public method

public RemoveItem ( long itemId, int quantity = 1 ) : ItemDAO
itemId long
quantity int
return ItemDAO

RemoveItems() public method

public RemoveItems ( ) : IEnumerable
return IEnumerable

SerializeAs_BagContent() public method

public SerializeAs_BagContent ( StringBuilder message ) : void
message StringBuilder
return void

SubKamas() public method

public SubKamas ( long value ) : void
value long
return void

TryMerge() public method

public TryMerge ( ItemDAO item ) : bool
item ItemDAO
return bool