From 00b43f01816f4ad4866ae27ddb754bd8b9903a11 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 26 Mar 2014 17:18:46 +1000 Subject: Just rearrange Things a little. B-) --- ClientHamr/GuiLua/skang.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ClientHamr') 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 - Thing.action = 'nada' -- An optional action to perform. Thing.tell = '' -- The skang command that created this Thing. +Thing.isReadOnly = false -- Is this Thing read only? +Thing.isServer = false -- Is this Thing server side? +Thing.isStub = false -- Is this Thing a stub? +Thing.isStubbed = false -- Is this Thing stubbed elsewhere? + +Thing.hasCrashed = 0 -- How many times this Thing has crashed. + Thing.append = function (self,data) -- Append to the value of this Thing. end +Thing.errors = {} -- A list of errors returned by isValid(). + Thing.isValid = function (self) -- Check if this Thing is valid, return resulting error messages in errors. -- Anything that overrides this method, should call this super method first. local value = self.module[self.names[1] ] @@ -234,15 +243,6 @@ end Thing.remove = function (self) -- Delete this Thing. end -Thing.errors = {} -- A list of errors returned by isValid(). - -Thing.isReadOnly = false -- Is this Thing read only? -Thing.isServer = false -- Is this Thing server side? -Thing.isStub = false -- Is this Thing a stub? -Thing.isStubbed = false -- Is this Thing stubbed elsewhere? - -Thing.hasCrashed = 0 -- How many times this Thing has crashed. - Thing.__index = function (table, key) -- This only works for keys that don't exist. By definition a value of nil means it doesn't exist. local thing = things[key] -- cgit v1.1