diff options
Diffstat (limited to 'debug/ability_reg.lua.X')
| -rw-r--r-- | debug/ability_reg.lua.X | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debug/ability_reg.lua.X b/debug/ability_reg.lua.X new file mode 100644 index 0000000..1302808 --- /dev/null +++ b/debug/ability_reg.lua.X @@ -0,0 +1,26 @@ +Pos Lua >> Moon +1 1:[ local ui = require("ui") ] >> 1:[ ui = require "ui" ] +19 2:[ local reg = ... ] >> 2:[ reg = ... ] +30 3:[ reg.list = { } ] >> 4:[ reg.list = {} ] +1101 9:[ local main = require("main") ] >> 30:[ main = require "main" ] +1125 10:[ local infocard = am.group():tag("infocard") ] >> 31:[ infocard = am.group!\tag("infocard") ] +1164 11:[ main.root("screen"):append(infocard) ] >> 32:[ main.root("screen")\append(infocard) ] +1203 12:[ return ui.build_infocard(infocard, self.__class) ] >> 33:[ ui.build_infocard(infocard,@@) ] +1252 15:[ local main = require("main") ] >> 36:[ main = require "main" ] +1276 16:[ return main.root:remove("infocard") ] >> 37:[ main.root\remove("infocard") ] +365 22:[ self.sprite = self.__class.sprite ] >> 13:[ @sprite = @@sprite ] +386 23:[ self.name = name or self.__class.__name ] >> 14:[ @name = name or @.__class.__name ] +421 24:[ self.data = data ] >> 15:[ @data = data ] +326 38:[ self.children = { } ] >> 11:[ @children = {} ] +464 40:[ assert(child.use, "abilities must have a .use") ] >> 18:[ assert(child.use, "abilities must have a .use") ] +514 41:[ assert(type(child.use) == "function", "abilities must have a .use() function") ] >> 19:[ assert(type(child.use) == "function", "abilities must have a .use() function") ] +595 42:[ assert(type(child.load) == "function", "abilities must have a .load() that shows their infocard") ] >> 20:[ assert(type(child.load) == "function", "abilities must have a .load() that shows their infocard") ] +695 43:[ assert(type(child.unload) == "function", "abilities must have an .unload() that removes their infocard") ] >> 21:[ assert(type(child.unload) == "function", "abilities must have an .unload() that removes their infocard") ] +802 44:[ assert(child.text, "ability must have text") ] >> 22:[ assert(child.text, "ability must have text") ] +849 45:[ assert(child.description, "ability must have a description") ] >> 23:[ assert(child.description, "ability must have a description") ] +912 46:[ assert(child.hits_icon, "ability must have a hits icon") ] >> 24:[ assert(child.hits_icon, "ability must have a hits icon") ] +971 47:[ assert(child.speed, "ability must have a speed") ] >> 25:[ assert(child.speed, "ability must have a speed") ] +1022 48:[ self.__class.children[child.__name] = child ] >> 26:[ @@.children[child.__name] = child ] +1058 49:[ reg[child.__name] = child ] >> 27:[ reg[child.__name] = child ] +1407 53:[ reg["Ability"] = Ability ] >> 41:[ reg["Ability"] = Ability ] +1433 54:[ return reg ] >> 43:[ return reg ] |
