C# Class invertika_game.Game.Inventory

显示文件 Open project: Invertika/server Class Usage Examples

Public Methods

Method Description
Inventory ( Character p ) : System
checkLookchanges ( uint slotTypeId ) : void
initialize ( ) : void
sendFull ( ) : void
updateEquipmentTrigger ( ItemClass oldI, ItemClass newI ) : void
updateEquipmentTrigger ( uint oldId, uint newId ) : void

Private Methods

Method Description
checkEquipmentCapacity ( uint equipmentSlot, uint capacityRequested ) : bool
count ( uint itemId ) : uint
equip ( int inventorySlot ) : bool
getItem ( uint slot ) : uint
getNewEquipItemInstance ( ) : uint
insert ( uint itemId, uint amount ) : uint
move ( uint slot1, uint slot2, uint amount ) : uint
remove ( uint itemId, uint amount ) : uint
removeFromSlot ( uint slot, uint amount ) : uint
unequip ( uint itemInstance ) : bool

Method Details

Inventory() public method

public Inventory ( Character p ) : System
p Character
return System

checkLookchanges() public method

public checkLookchanges ( uint slotTypeId ) : void
slotTypeId uint
return void

initialize() public method

public initialize ( ) : void
return void

sendFull() public method

public sendFull ( ) : void
return void

updateEquipmentTrigger() public method

public updateEquipmentTrigger ( ItemClass oldI, ItemClass newI ) : void
oldI ItemClass
newI ItemClass
return void

updateEquipmentTrigger() public method

public updateEquipmentTrigger ( uint oldId, uint newId ) : void
oldId uint
newId uint
return void