Changes

Jump to navigation Jump to search
items
Line 10: Line 10:     
==Items==
 
==Items==
//todo describe section
+
Items are objects which represent things which can be put in an inventory. Tools, Crops, etc.
 
===Create an Item===
 
===Create an Item===
 
//todo
 
//todo
 
===Remove an Item===
 
===Remove an Item===
 
//todo
 
//todo
===Add an item to the player inventory===
+
===Add an item to an inventory===
 
//todo
 
//todo
 +
===Remove an item from an inventory===
 +
<source lang="c#">
 +
item.Stack--;
 +
if (item.Stack == 0) {
 +
    inventory.Remove(item);
 +
}
 +
</source>
 +
 
==Locations==
 
==Locations==
 
The ''GameLocation'' is a representation of any place in the game (e.g. Farm, Town)
 
The ''GameLocation'' is a representation of any place in the game (e.g. Farm, Town)
37

edits

Navigation menu