Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Modding:Common tasks
(view source)
Revision as of 20:24, 21 May 2018
199 bytes added
,
20:24, 21 May 2018
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)
Hawkfalcon
37
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version