MovingBlocks/Terasology — pull request #925 by MarcinSc (2014-02-08 03:58:07+00:00)
Title: Refactoring Inventory related classes

InventoryManager has now only read-only methods, all the write actions have to be done by sending one of the action events: GiveItemAction, MoveItemAction, RemoveItemAction, SwitchItemAction.

Validation of input can be done on inventories via BeforeItemPutInInventory and BeforeItemRemovedFromInventory, which if consumed - will cancel the operation.