aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/test.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-04-01 21:54:07 +1000
committerDavid Walter Seikel2014-04-01 21:54:07 +1000
commitda619eb9131bb137a375cfcc65df9412eec33d80 (patch)
tree578813776cc9f5c308d446fcfb9fcfad46afc36b /ClientHamr/GuiLua/test.lua
parentFix up setting Stuff, mostly. (diff)
downloadSledjHamr-da619eb9131bb137a375cfcc65df9412eec33d80.zip
SledjHamr-da619eb9131bb137a375cfcc65df9412eec33d80.tar.gz
SledjHamr-da619eb9131bb137a375cfcc65df9412eec33d80.tar.bz2
SledjHamr-da619eb9131bb137a375cfcc65df9412eec33d80.tar.xz
Massage Thing design notes into docs, and clean up some Stuff as a result.
Diffstat (limited to 'ClientHamr/GuiLua/test.lua')
-rw-r--r--ClientHamr/GuiLua/test.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/ClientHamr/GuiLua/test.lua b/ClientHamr/GuiLua/test.lua
index fff9023..60d4200 100644
--- a/ClientHamr/GuiLua/test.lua
+++ b/ClientHamr/GuiLua/test.lua
@@ -127,7 +127,7 @@ skang.thingasm{stuff.t, 'c', 'Another sub stufflet'}
127skang.thingasm{stuff, 's', 'A Stuff', types='table'} 127skang.thingasm{stuff, 's', 'A Stuff', types='table'}
128stuff.s{'sa,a', 'A stufflet in a Stuff'} 128stuff.s{'sa,a', 'A stufflet in a Stuff'}
129stuff.s{'sb,b', 'Another stufflet in a Stuff'} 129stuff.s{'sb,b', 'Another stufflet in a Stuff'}
130skang.thingasm{stuff, 'S', 'A database table of Stuff', types='Stuff'} 130skang.thingasm{stuff, 'S', 'A database table of Stuff', types='Keyed'}
131stuff.S{'field0', 'The first field of the db table.'} 131stuff.S{'field0', 'The first field of the db table.'}
132stuff.S{'field1', 'The second field of the db table.'} 132stuff.S{'field1', 'The second field of the db table.'}
133 133
@@ -166,7 +166,7 @@ stuff.s = {a=8, sb='9'}
166stuff.s.sb = 44 166stuff.s.sb = 44
167print('') 167print('')
168--stuff.S.record0 = {} 168--stuff.S.record0 = {}
169stuff.S['record0'] = {field0='0', field1='zero'} 169stuff.S['record0'] = {field0=0, field1='zero'}
170stuff.S['record1'] = {field0='1', field1='one'} 170stuff.S['record1'] = {field0='1', field1='one'}
171-- TODO - adding a third makes isValid() crash. 171-- TODO - adding a third makes isValid() crash.
172--stuff.S['record2'] = {field0='2', field1='two'} 172--stuff.S['record2'] = {field0='2', field1='two'}
@@ -216,3 +216,5 @@ print(stuff.S['record1'].field1)
216--skang.printTableStart(getmetatable(stuff.s), '', 'stuff.s metatable') 216--skang.printTableStart(getmetatable(stuff.s), '', 'stuff.s metatable')
217--skang.printTableStart(getmetatable(stuff), '', 'stuff metatable') 217--skang.printTableStart(getmetatable(stuff), '', 'stuff metatable')
218--skang.printTableStart(getmetatable(stuff.S), '', 'stuff.S metatable') 218--skang.printTableStart(getmetatable(stuff.S), '', 'stuff.S metatable')
219
220--skang.printTableStart(getmetatable(test), '', 'test metatable')