package engine.debug
{
import __AS3__.vec.*;
import flash.events.*;
import service.*;
import spark.components.*;
public class ConsoleManager extends Object
{
static var ConsoleInput:TextInput;
static var Commands:Vector.;
static var bShowLog:Boolean;
static var UserInput:Array;
private static var admins:Array;
public function ConsoleManager()
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//d0
_as3_getlocal <0>
//49 00
_as3_constructsuper (param count:0)
//47
_as3_returnvoid
}// end function
private static function registerCommands() : void
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//47
_as3_returnvoid
}// end function
public static function init() : void
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//5e f1 58
_as3_findproperty engine.debug:ConsoleManager::Commands
//60 99 6e
_as3_getlex Vector
//60 84 0e
_as3_getlex ConsoleCommand
//53 01
_as3_applytype {param count:1}
//42 00
_as3_construct (param count:0)
//61 f1 58
_as3_setproperty engine.debug:ConsoleManager::Commands
//5e ef 58
_as3_findproperty engine.debug:ConsoleManager::ConsoleInput
//20
_as3_pushnull
//61 ef 58
_as3_setproperty engine.debug:ConsoleManager::ConsoleInput
//5e f3 58
_as3_findproperty engine.debug:ConsoleManager::bShowLog
//27
_as3_pushfalse
//61 f3 58
_as3_setproperty engine.debug:ConsoleManager::bShowLog
//5e f5 58
_as3_findproperty admins
//5d 0d
_as3_findpropstrict Array
//4a 0d 00
_as3_constructprop Array(param count:0)
//61 f5 58
_as3_setproperty admins
//5d f6 58
_as3_findpropstrict registerCommands
//4f f6 58 00
_as3_callpropvoid registerCommands(param count:0)
//47
_as3_returnvoid
}// end function
public static function isLogShow() : Boolean
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//60 f3 58
_as3_getlex engine.debug:ConsoleManager::bShowLog
//48
_as3_returnvalue
}// end function
public static function addAdminCommands(param1:Array) : void
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//d1
_as3_getlocal <1>
//96
_as3_not
//2a
_as3_dup
//11 08 00 00
_as3_iftrue offset: 8
//29
_as3_pop
//d1
_as3_getlocal <1>
//66 c7 65
_as3_getproperty length
//24 00
_as3_pushbyte 0
//ab
_as3_equals
//12 01 00 00
_as3_iffalse offset: 1
//47
_as3_returnvoid
//24 00
_as3_pushbyte 0
//d6
_as3_setlocal <2>
//10 0f 00 00
_as3_jump offset: 15
//09
_as3_label
//60 f5 58
_as3_getlex admins
//d1
_as3_getlocal <1>
//d2
_as3_getlocal <2>
//66 9a 6e
_as3_getproperty {}
//4f 87 67 01
_as3_callpropvoid http://adobe.com/AS3/2006/builtin::push(param count:1)
//c2 02
_as3_inclocal_i <2>
//d2
_as3_getlocal <2>
//d1
_as3_getlocal <1>
//66 c7 65
_as3_getproperty length
//15 e8 ff ff
_as3_iflt offset: -24
//47
_as3_returnvoid
}// end function
public static function dumpAdminCommands() : void
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//2c 01
_as3_pushstring ""
//d5
_as3_setlocal <1>
//24 00
_as3_pushbyte 0
//d6
_as3_setlocal <2>
//10 11 00 00
_as3_jump offset: 17
//09
_as3_label
//d1
_as3_getlocal <1>
//60 f5 58
_as3_getlex admins
//d2
_as3_getlocal <2>
//66 9a 6e
_as3_getproperty {}
//a0
_as3_add
//2c 88 59
_as3_pushstring ", "
//a0
_as3_add
//d5
_as3_setlocal <1>
//c2 02
_as3_inclocal_i <2>
//d2
_as3_getlocal <2>
//60 f5 58
_as3_getlex admins
//66 c7 65
_as3_getproperty length
//15 e4 ff ff
_as3_iflt offset: -28
//47
_as3_returnvoid
}// end function
public static function RegisterCommand(param1:String, param2:Function) : void
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//60 f1 58
_as3_getlex engine.debug:ConsoleManager::Commands
//11 01 00 00
_as3_iftrue offset: 1
//47
_as3_returnvoid
//5d 84 0e
_as3_findpropstrict ConsoleCommand
//4a 84 0e 00
_as3_constructprop ConsoleCommand(param count:0)
//80 84 0e
_as3_coerce ConsoleCommand
//d7
_as3_setlocal <3>
//d3
_as3_getlocal <3>
//d1
_as3_getlocal <1>
//61 85 0e
_as3_setproperty Command
//d3
_as3_getlocal <3>
//d2
_as3_getlocal <2>
//61 86 0e
_as3_setproperty Callback
//60 f1 58
_as3_getlex engine.debug:ConsoleManager::Commands
//d3
_as3_getlocal <3>
//4f 87 67 01
_as3_callpropvoid http://adobe.com/AS3/2006/builtin::push(param count:1)
//47
_as3_returnvoid
}// end function
public static function PrintCommand() : void
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//60 f1 58
_as3_getlex engine.debug:ConsoleManager::Commands
//11 01 00 00
_as3_iftrue offset: 1
//47
_as3_returnvoid
//60 c1 03
_as3_getlex UEngine
//2c 93 63
_as3_pushstring "commands:"
//60 e3 08
_as3_getlex Config
//66 9b 58
_as3_getproperty LOG_TEXTCOLOR_NORMAL
//4f f4 55 02
_as3_callpropvoid log(param count:2)
//24 00
_as3_pushbyte 0
//74
_as3_convert_u
//d5
_as3_setlocal <1>
//10 20 00 00
_as3_jump offset: 32
//09
_as3_label
//60 c1 03
_as3_getlex UEngine
//2c 94 63
_as3_pushstring " "
//60 f1 58
_as3_getlex engine.debug:ConsoleManager::Commands
//d1
_as3_getlocal <1>
//66 9a 6e
_as3_getproperty {}
//66 85 0e
_as3_getproperty Command
//a0
_as3_add
//60 e3 08
_as3_getlex Config
//66 9b 58
_as3_getproperty LOG_TEXTCOLOR_NORMAL
//4f f4 55 02
_as3_callpropvoid log(param count:2)
//d1
_as3_getlocal <1>
//91
_as3_increment
//74
_as3_convert_u
//d5
_as3_setlocal <1>
//d1
_as3_getlocal <1>
//60 f1 58
_as3_getlex engine.debug:ConsoleManager::Commands
//66 c7 65
_as3_getproperty length
//15 d5 ff ff
_as3_iflt offset: -43
//24 00
_as3_pushbyte 0
//d6
_as3_setlocal <2>
//10 1b 00 00
_as3_jump offset: 27
//09
_as3_label
//60 c1 03
_as3_getlex UEngine
//2c 94 63
_as3_pushstring " "
//60 f5 58
_as3_getlex admins
//d2
_as3_getlocal <2>
//66 9a 6e
_as3_getproperty {}
//a0
_as3_add
//60 e3 08
_as3_getlex Config
//66 9b 58
_as3_getproperty LOG_TEXTCOLOR_NORMAL
//4f f4 55 02
_as3_callpropvoid log(param count:2)
//c2 02
_as3_inclocal_i <2>
//d2
_as3_getlocal <2>
//60 f5 58
_as3_getlex admins
//66 c7 65
_as3_getproperty length
//15 da ff ff
_as3_iflt offset: -38
//47
_as3_returnvoid
}// end function
public static function HandleCommand(param1:String) : void
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//60 f1 58
_as3_getlex engine.debug:ConsoleManager::Commands
//11 01 00 00
_as3_iftrue offset: 1
//47
_as3_returnvoid
//24 00
_as3_pushbyte 0
//74
_as3_convert_u
//d6
_as3_setlocal <2>
//10 20 00 00
_as3_jump offset: 32
//09
_as3_label
//60 f1 58
_as3_getlex engine.debug:ConsoleManager::Commands
//d2
_as3_getlocal <2>
//66 9a 6e
_as3_getproperty {}
//66 85 0e
_as3_getproperty Command
//d1
_as3_getlocal <1>
//14 0c 00 00
_as3_ifne offset: 12
//60 f1 58
_as3_getlex engine.debug:ConsoleManager::Commands
//d2
_as3_getlocal <2>
//66 9a 6e
_as3_getproperty {}
//4f 86 0e 00
_as3_callpropvoid Callback(param count:0)
//47
_as3_returnvoid
//d2
_as3_getlocal <2>
//91
_as3_increment
//74
_as3_convert_u
//d6
_as3_setlocal <2>
//d2
_as3_getlocal <2>
//60 f1 58
_as3_getlex engine.debug:ConsoleManager::Commands
//66 c7 65
_as3_getproperty length
//15 d5 ff ff
_as3_iflt offset: -43
//24 00
_as3_pushbyte 0
//74
_as3_convert_u
//d7
_as3_setlocal <3>
//10 39 00 00
_as3_jump offset: 57
//09
_as3_label
//60 f5 58
_as3_getlex admins
//d3
_as3_getlocal <3>
//66 9a 6e
_as3_getproperty {}
//d1
_as3_getlocal <1>
//14 28 00 00
_as3_ifne offset: 40
//60 c1 03
_as3_getlex UEngine
//5d e6 29
_as3_findpropstrict service::RequestAdmin
//d1
_as3_getlocal <1>
//60 f4 58
_as3_getlex engine.debug:ConsoleManager::UserInput
//24 01
_as3_pushbyte 1
//66 9a 6e
_as3_getproperty {}
//60 f4 58
_as3_getlex engine.debug:ConsoleManager::UserInput
//24 02
_as3_pushbyte 2
//66 9a 6e
_as3_getproperty {}
//60 f4 58
_as3_getlex engine.debug:ConsoleManager::UserInput
//24 03
_as3_pushbyte 3
//66 9a 6e
_as3_getproperty {}
//4a e6 29 04
_as3_constructprop service::RequestAdmin(param count:4)
//4f e3 10 01
_as3_callpropvoid send(param count:1)
//47
_as3_returnvoid
//d3
_as3_getlocal <3>
//91
_as3_increment
//74
_as3_convert_u
//d7
_as3_setlocal <3>
//d3
_as3_getlocal <3>
//60 f5 58
_as3_getlex admins
//66 c7 65
_as3_getproperty length
//15 bc ff ff
_as3_iflt offset: -68
//47
_as3_returnvoid
}// end function
public static function SetupInput() : void
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//60 e3 08
_as3_getlex Config
//66 80 58
_as3_getproperty architect
//76
_as3_convert_b
//2a
_as3_dup
//12 06 00 00
_as3_iffalse offset: 6
//29
_as3_pop
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//20
_as3_pushnull
//ab
_as3_equals
//12 49 00 00
_as3_iffalse offset: 73
//5e ef 58
_as3_findproperty engine.debug:ConsoleManager::ConsoleInput
//5d f0 58
_as3_findpropstrict spark.components::TextInput
//4a f0 58 00
_as3_constructprop spark.components::TextInput(param count:0)
//61 ef 58
_as3_setproperty engine.debug:ConsoleManager::ConsoleInput
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//24 05
_as3_pushbyte 5
//61 dd 51
_as3_setproperty x
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//24 05
_as3_pushbyte 5
//61 de 51
_as3_setproperty y
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//25 80 02
_as3_pushshort 256
//61 fa 11
_as3_setproperty width
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//60 12
_as3_getlex flash.events::KeyboardEvent
//66 9d 67
_as3_getproperty KEY_UP
//60 ff 58
_as3_getlex engine.debug:ConsoleManager::onkeyupConsole
//4f 91 04 02
_as3_callpropvoid addEventListener(param count:2)
//60 06
_as3_getlex BaseMatrix
//46 a8 55 00
_as3_callproperty getApp(param count:0)
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//4f 9b 6e 01
_as3_callpropvoid addChild(param count:1)
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//4f 9c 6e 00
_as3_callpropvoid setFocus(param count:0)
//47
_as3_returnvoid
}// end function
public static function FinishInput() : void
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//60 e3 08
_as3_getlex Config
//66 80 58
_as3_getproperty architect
//76
_as3_convert_b
//2a
_as3_dup
//12 05 00 00
_as3_iffalse offset: 5
//29
_as3_pop
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//76
_as3_convert_b
//12 53 00 00
_as3_iffalse offset: 83
//60 c1 03
_as3_getlex UEngine
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//66 e1 69
_as3_getproperty text
//60 e3 08
_as3_getlex Config
//66 a0 58
_as3_getproperty LOG_TEXTCOLOR_COMMAND
//4f f4 55 02
_as3_callpropvoid log(param count:2)
//5e f4 58
_as3_findproperty engine.debug:ConsoleManager::UserInput
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//66 e1 69
_as3_getproperty text
//2c ab 58
_as3_pushstring " "
//46 df 67 01
_as3_callproperty http://adobe.com/AS3/2006/builtin::split(param count:1)
//61 f4 58
_as3_setproperty engine.debug:ConsoleManager::UserInput
//5d fc 58
_as3_findpropstrict HandleCommand
//60 f4 58
_as3_getlex engine.debug:ConsoleManager::UserInput
//24 00
_as3_pushbyte 0
//66 9a 6e
_as3_getproperty {}
//4f fc 58 01
_as3_callpropvoid HandleCommand(param count:1)
//60 06
_as3_getlex BaseMatrix
//46 a8 55 00
_as3_callproperty getApp(param count:0)
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//4f 9d 6e 01
_as3_callpropvoid removeChild(param count:1)
//5e ef 58
_as3_findproperty engine.debug:ConsoleManager::ConsoleInput
//20
_as3_pushnull
//61 ef 58
_as3_setproperty engine.debug:ConsoleManager::ConsoleInput
//60 06
_as3_getlex BaseMatrix
//46 a7 55 00
_as3_callproperty getInstance(param count:0)
//4f 9c 6e 00
_as3_callpropvoid setFocus(param count:0)
//47
_as3_returnvoid
}// end function
static function onkeyupConsole(event:KeyboardEvent) : void
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//60 e3 08
_as3_getlex Config
//66 80 58
_as3_getproperty architect
//76
_as3_convert_b
//2a
_as3_dup
//12 05 00 00
_as3_iffalse offset: 5
//29
_as3_pop
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//76
_as3_convert_b
//12 78 00 00
_as3_iffalse offset: 120
//10 39 00 00
_as3_jump offset: 57
//09
_as3_label
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//60 e3 08
_as3_getlex Config
//66 fe 57
_as3_getproperty signature
//61 e1 69
_as3_setproperty text
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//25 da 05
_as3_pushshort 730
//61 fa 11
_as3_setproperty width
//10 5a 00 00
_as3_jump offset: 90
//09
_as3_label
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//60 e3 08
_as3_getlex Config
//66 f8 11
_as3_getproperty userId
//61 e1 69
_as3_setproperty text
//60 ef 58
_as3_getlex engine.debug:ConsoleManager::ConsoleInput
//25 da 05
_as3_pushshort 730
//61 fa 11
_as3_setproperty width
//10 40 00 00
_as3_jump offset: 64
//09
_as3_label
//10 3b 00 00
_as3_jump offset: 59
//d1
_as3_getlocal <1>
//66 f0 67
_as3_getproperty keyCode
//d6
_as3_setlocal <2>
//24 21
_as3_pushbyte 33
//d2
_as3_getlocal <2>
//1a 06 00 00
_as3_ifstrictne offset: 6
//24 00
_as3_pushbyte 0
//10 19 00 00
_as3_jump offset: 25
//24 22
_as3_pushbyte 34
//d2
_as3_getlocal <2>
//1a 06 00 00
_as3_ifstrictne offset: 6
//24 01
_as3_pushbyte 1
//10 0c 00 00
_as3_jump offset: 12
//10 06 00 00
_as3_jump offset: 6
//24 02
_as3_pushbyte 2
//10 02 00 00
_as3_jump offset: 2
//24 02
_as3_pushbyte 2
//08 02
_as3_kill <2>
//1b ce ff ff 02 9a ff ff b4 ff ff ce ff ff
_as3_lookupswitch -50(2)[-102, -76, -50]
//47
_as3_returnvoid
}// end function
}
}
class ConsoleCommand extends Object
{
public var Command:String;
public var Callback:Function;
function ConsoleCommand()
{
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//d0
_as3_getlocal <0>
//49 00
_as3_constructsuper (param count:0)
//47
_as3_returnvoid
}// end function
}