diff options
Diffstat (limited to '')
-rw-r--r-- | ClientHamr/GuiLua/skang.lua | 18 |
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 - | |||
215 | Thing.action = 'nada' -- An optional action to perform. | 215 | Thing.action = 'nada' -- An optional action to perform. |
216 | Thing.tell = '' -- The skang command that created this Thing. | 216 | Thing.tell = '' -- The skang command that created this Thing. |
217 | 217 | ||
218 | Thing.isReadOnly = false -- Is this Thing read only? | ||
219 | Thing.isServer = false -- Is this Thing server side? | ||
220 | Thing.isStub = false -- Is this Thing a stub? | ||
221 | Thing.isStubbed = false -- Is this Thing stubbed elsewhere? | ||
222 | |||
223 | Thing.hasCrashed = 0 -- How many times this Thing has crashed. | ||
224 | |||
218 | Thing.append = function (self,data) -- Append to the value of this Thing. | 225 | Thing.append = function (self,data) -- Append to the value of this Thing. |
219 | end | 226 | end |
220 | 227 | ||
228 | Thing.errors = {} -- A list of errors returned by isValid(). | ||
229 | |||
221 | Thing.isValid = function (self) -- Check if this Thing is valid, return resulting error messages in errors. | 230 | Thing.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 | |||
234 | Thing.remove = function (self) -- Delete this Thing. | 243 | Thing.remove = function (self) -- Delete this Thing. |
235 | end | 244 | end |
236 | 245 | ||
237 | Thing.errors = {} -- A list of errors returned by isValid(). | ||
238 | |||
239 | Thing.isReadOnly = false -- Is this Thing read only? | ||
240 | Thing.isServer = false -- Is this Thing server side? | ||
241 | Thing.isStub = false -- Is this Thing a stub? | ||
242 | Thing.isStubbed = false -- Is this Thing stubbed elsewhere? | ||
243 | |||
244 | Thing.hasCrashed = 0 -- How many times this Thing has crashed. | ||
245 | |||
246 | Thing.__index = function (table, key) | 246 | Thing.__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] |