diff options
author | David Walter Seikel | 2014-03-26 20:02:47 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-03-26 20:02:47 +1000 |
commit | 251481192dc7ac89a3b749cbf42f79592e681e74 (patch) | |
tree | 9d6c3ef75884243f68e946fdd0b4b549a5d4f1a4 | |
parent | TODO++ (diff) | |
download | SledjHamr-251481192dc7ac89a3b749cbf42f79592e681e74.zip SledjHamr-251481192dc7ac89a3b749cbf42f79592e681e74.tar.gz SledjHamr-251481192dc7ac89a3b749cbf42f79592e681e74.tar.bz2 SledjHamr-251481192dc7ac89a3b749cbf42f79592e681e74.tar.xz |
More Stuff notes.
-rw-r--r-- | ClientHamr/GuiLua/GuiLua.c | 14 | ||||
-rw-r--r-- | ClientHamr/GuiLua/skang.lua | 1 |
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 | |||
103 | version of Stuff. Maybe we could wrap esskyuehl? Not really in need of | 103 | version of Stuff. Maybe we could wrap esskyuehl? Not really in need of |
104 | database stuff for now, but should keep it in mind. | 104 | database stuff for now, but should keep it in mind. |
105 | 105 | ||
106 | Stuff is an abstract class that gets extended by other classes, like | ||
107 | SquealStuff, which was the only thing extending it. It dealt with the | ||
108 | basic "collection of things" stuff. Each individual thing was called a | ||
109 | stufflet. A final fooStuff would extend S_juealStuff, and include an | ||
110 | array of strings called "stufflets" that at least named the stufflets, | ||
111 | but could also include metadata and links to other Stuffs. For | ||
112 | SquealStuff, the metadata would be read from the SQL database | ||
113 | autamatically. | ||
114 | |||
115 | There was varies infrastructure for reading and writing Stuff, throwing | ||
116 | rows of Stuff into grids, having choices of Stuff, linking stufflets to | ||
117 | individual widgets, having default Stuffs for windows, validating | ||
118 | Stuffs, 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. |