aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-26 20:02:47 +1000
committerDavid Walter Seikel2014-03-26 20:02:47 +1000
commit251481192dc7ac89a3b749cbf42f79592e681e74 (patch)
tree9d6c3ef75884243f68e946fdd0b4b549a5d4f1a4
parentTODO++ (diff)
downloadSledjHamr-251481192dc7ac89a3b749cbf42f79592e681e74.zip
SledjHamr-251481192dc7ac89a3b749cbf42f79592e681e74.tar.gz
SledjHamr-251481192dc7ac89a3b749cbf42f79592e681e74.tar.bz2
SledjHamr-251481192dc7ac89a3b749cbf42f79592e681e74.tar.xz
More Stuff notes.
Diffstat (limited to '')
-rw-r--r--ClientHamr/GuiLua/GuiLua.c14
-rw-r--r--ClientHamr/GuiLua/skang.lua1
2 files changed, 15 insertions, 0 deletions
diff --git a/ClientHamr/GuiLua/GuiLua.c b/ClientHamr/GuiLua/GuiLua.c
index 94a29eb..87766b0 100644
--- a/ClientHamr/GuiLua/GuiLua.c
+++ b/ClientHamr/GuiLua/GuiLua.c
@@ -103,6 +103,20 @@ Squeal was the database driver interface for SquealStuff, the database
103version of Stuff. Maybe we could wrap esskyuehl? Not really in need of 103version of Stuff. Maybe we could wrap esskyuehl? Not really in need of
104database stuff for now, but should keep it in mind. 104database stuff for now, but should keep it in mind.
105 105
106Stuff is an abstract class that gets extended by other classes, like
107SquealStuff, which was the only thing extending it. It dealt with the
108basic "collection of things" stuff. Each individual thing was called a
109stufflet. A final fooStuff would extend S_juealStuff, and include an
110array of strings called "stufflets" that at least named the stufflets,
111but could also include metadata and links to other Stuffs. For
112SquealStuff, the metadata would be read from the SQL database
113autamatically.
114
115There was varies infrastructure for reading and writing Stuff, throwing
116rows of Stuff into grids, having choices of Stuff, linking stufflets to
117individual widgets, having default Stuffs for windows, validating
118Stuffs, etc.
119
106*/ 120*/
107 121
108 122
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index cb0b84a..e81c598 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -248,6 +248,7 @@ Thing.__index = function (table, key)
248 local thing = things[key] 248 local thing = things[key]
249 -- First see if this is a Thing. 249 -- First see if this is a Thing.
250 -- TODO - Java skang called isValid() on get(). On the other hand, doesn't seem to call it on set(), but calls it on append(). 250 -- TODO - Java skang called isValid() on get(). On the other hand, doesn't seem to call it on set(), but calls it on append().
251 -- Ah, it was doing isValid() on setStufflet().
251 if thing then return thing.value or thing.default end 252 if thing then return thing.value or thing.default end
252 253
253 -- Then see if we can inherit it from Thing. 254 -- Then see if we can inherit it from Thing.