diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-04-02 20:05:56 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-04-02 20:05:56 -0400 |
| commit | 191ba416c8b611ea4901cead138789a357c56134 (patch) | |
| tree | b30ae3473c16028a14d3ed0c80633f360cc1c914 /doc | |
| parent | a22cbeddc5f8fb61e87a30aa14ba354de5cf4431 (diff) | |
| download | artery-191ba416c8b611ea4901cead138789a357c56134.tar.gz artery-191ba416c8b611ea4901cead138789a357c56134.tar.bz2 artery-191ba416c8b611ea4901cead138789a357c56134.zip | |
I finally had some time to work on this... dependency added on bobbleheadbob's zone addon
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/for_developers/structs/dropped_item.md | 14 | ||||
| -rw-r--r-- | doc/for_developers/structs/player.md | 17 | ||||
| -rw-r--r-- | doc/structs/dropped_item.md | 14 |
3 files changed, 45 insertions, 0 deletions
diff --git a/doc/for_developers/structs/dropped_item.md b/doc/for_developers/structs/dropped_item.md new file mode 100644 index 0000000..ffabfbd --- /dev/null +++ b/doc/for_developers/structs/dropped_item.md @@ -0,0 +1,14 @@ +# Dropped item + +Droped items are represented as a name-data combo + + local i = <table_item> + local e = ents.Create("art_droppeditem") + e.Item = { + Name = i.Name + Data = i:Serialize() + } + +This structure is used in: +* gamemode/core/inventory/sv_invtracker.lua +* entities/entities/art_droppeditem/init.lua diff --git a/doc/for_developers/structs/player.md b/doc/for_developers/structs/player.md new file mode 100644 index 0000000..130927d --- /dev/null +++ b/doc/for_developers/structs/player.md @@ -0,0 +1,17 @@ +# Player + +A player has the following fields + +`ply.data` - stores all data needed to save & create a player + +# Data + +A players data consists of the following + +`data.inventories :: array` the inventories a player posesses, remember that all inventories must have a :serialize() method + +`data.skills :: table` the skills a player has picked up + +`data.quests :: table` the quests a player knows about + +`data.prayers :: tabe` the prayers that a player can do diff --git a/doc/structs/dropped_item.md b/doc/structs/dropped_item.md new file mode 100644 index 0000000..ffabfbd --- /dev/null +++ b/doc/structs/dropped_item.md @@ -0,0 +1,14 @@ +# Dropped item + +Droped items are represented as a name-data combo + + local i = <table_item> + local e = ents.Create("art_droppeditem") + e.Item = { + Name = i.Name + Data = i:Serialize() + } + +This structure is used in: +* gamemode/core/inventory/sv_invtracker.lua +* entities/entities/art_droppeditem/init.lua |
