aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/skang.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-03-26 17:18:46 +1000
committerDavid Walter Seikel2014-03-26 17:18:46 +1000
commit00b43f01816f4ad4866ae27ddb754bd8b9903a11 (patch)
tree1589cc110c114582d6236cccc85888ba9a1020ca /ClientHamr/GuiLua/skang.lua
parentWhite space clean ups. (diff)
downloadSledjHamr-00b43f01816f4ad4866ae27ddb754bd8b9903a11.zip
SledjHamr-00b43f01816f4ad4866ae27ddb754bd8b9903a11.tar.gz
SledjHamr-00b43f01816f4ad4866ae27ddb754bd8b9903a11.tar.bz2
SledjHamr-00b43f01816f4ad4866ae27ddb754bd8b9903a11.tar.xz
Just rearrange Things a little. B-)
Diffstat (limited to 'ClientHamr/GuiLua/skang.lua')
-rw-r--r--ClientHamr/GuiLua/skang.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua
index 6561bb8..9bb842d 100644
--- a/ClientHamr/GuiLua/skang.lua
+++ b/ClientHamr/GuiLua/skang.lua
@@ -215,9 +215,18 @@ Other Thing things are -
215Thing.action = 'nada' -- An optional action to perform. 215Thing.action = 'nada' -- An optional action to perform.
216Thing.tell = '' -- The skang command that created this Thing. 216Thing.tell = '' -- The skang command that created this Thing.
217 217
218Thing.isReadOnly = false -- Is this Thing read only?
219Thing.isServer = false -- Is this Thing server side?
220Thing.isStub = false -- Is this Thing a stub?
221Thing.isStubbed = false -- Is this Thing stubbed elsewhere?
222
223Thing.hasCrashed = 0 -- How many times this Thing has crashed.
224
218Thing.append = function (self,data) -- Append to the value of this Thing. 225Thing.append = function (self,data) -- Append to the value of this Thing.
219end 226end
220 227
228Thing.errors = {} -- A list of errors returned by isValid().
229
221Thing.isValid = function (self) -- Check if this Thing is valid, return resulting error messages in errors. 230Thing.isValid = function (self) -- Check if this Thing is valid, return resulting error messages in errors.
222 -- Anything that overrides this method, should call this super method first. 231 -- Anything that overrides this method, should call this super method first.
223 local value = self.module[self.names[1] ] 232 local value = self.module[self.names[1] ]
@@ -234,15 +243,6 @@ end
234Thing.remove = function (self) -- Delete this Thing. 243Thing.remove = function (self) -- Delete this Thing.
235end 244end
236 245
237Thing.errors = {} -- A list of errors returned by isValid().
238
239Thing.isReadOnly = false -- Is this Thing read only?
240Thing.isServer = false -- Is this Thing server side?
241Thing.isStub = false -- Is this Thing a stub?
242Thing.isStubbed = false -- Is this Thing stubbed elsewhere?
243
244Thing.hasCrashed = 0 -- How many times this Thing has crashed.
245
246Thing.__index = function (table, key) 246Thing.__index = function (table, key)
247 -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist. 247 -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist.
248 local thing = things[key] 248 local thing = things[key]