summaryrefslogtreecommitdiffstats
path: root/source/ItemGrid.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cItemGrid: Added IsSlotEmpty() functionsmadmaxoft@gmail.com2013-06-131-0/+25
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1585 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ItemGrid: fixed changing item count when ToRemove == CurrentCountmadmaxoft@gmail.com2013-06-041-1/+1
| | | | | | Fixes FS #380 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1545 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed cItemGrid API, no more changeable GetSlot().madmaxoft@gmail.com2013-05-261-25/+0
| | | | | | Also fixed possible water and lava duplication glitches in the dispenser. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1520 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ItemGrid: Added the RemoveOneItem() functionmadmaxoft@gmail.com2013-05-261-0/+47
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1513 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cChestEntity and cDispenserEntity now inherit from a common ancestor, cBlockEntityWithItemsmadmaxoft@gmail.com2013-05-251-0/+41
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1507 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Slight cleanup in the cInventory / cItemGrid APImadmaxoft@gmail.com2013-05-241-0/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1504 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Refactored cInventory to use cItemGrid for the actual Storagemadmaxoft@gmail.com2013-05-241-14/+189
| | | | | | This makes the API more orthogonal and is easier to use in the plugins. Also changes in the inventory are now propagated to the needed places (armor updates to BroadcastEntityEquipment etc.) even when the inventory is changed by a plugin. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1503 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ItemGrid: Renamed all Item to Slot - better and consistent namingmadmaxoft@gmail.com2013-04-101-40/+40
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1381 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cItemGrid to represent an XY grid of items; converted chests to use cItemGrid.madmaxoft@gmail.com2013-04-101-0/+349
http://forum.mc-server.org/showthread.php?tid=831 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1380 0a769ca7-a7f5-676a-18bf-c427514a06d6