mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,47 @@
|
||||
package nodeHop
|
||||
{
|
||||
import com.sbi.client.SFEvent;
|
||||
import com.sbi.debug.DebugUtility;
|
||||
|
||||
public class NodeHopXtCommManager
|
||||
{
|
||||
|
||||
public function NodeHopXtCommManager()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function init() : void
|
||||
{
|
||||
XtReplyDemuxer.addModule(handleXtReply,"n");
|
||||
}
|
||||
|
||||
public static function destroy() : void
|
||||
{
|
||||
XtReplyDemuxer.removeModule(handleXtReply);
|
||||
}
|
||||
|
||||
public static function sendNodeHopForDrainRequest() : void
|
||||
{
|
||||
gMainFrame.server.setXtObject_Str("nd",[]);
|
||||
}
|
||||
|
||||
public static function handleXtReply(param1:SFEvent) : void
|
||||
{
|
||||
var _loc2_:Array = param1.obj;
|
||||
DebugUtility.debugTrace("data:" + _loc2_);
|
||||
var _loc3_:* = _loc2_[0];
|
||||
if("nd" !== _loc3_)
|
||||
{
|
||||
throw new Error("NodeHop unknown data:" + _loc2_[0]);
|
||||
}
|
||||
handleNodeHopDrainResponse(_loc2_);
|
||||
}
|
||||
|
||||
private static function handleNodeHopDrainResponse(param1:Array) : void
|
||||
{
|
||||
Utility.reloadSWFOrGetIp(true,true,param1[2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user