public static MudCommunication GetInstance() { if (Instance == null) { Instance = new MudCommunication(); } return(Instance); }
private void Init() { CustomVariable.InitVariable(); _comm = MudCommunication.GetInstance(); this._comm.serverMessage += new MudCommunication.serverMessageEventHandler(serverConnection_serverMessage); this._comm.disconnected += new MudCommunication.disconnectionEventHandler(serverConnection_disconnected); this._comm.telnetMessage += new MudCommunication.serverTelnetEventHandler(serverConnection_telnetMessage); this._comm.FadaiHandler += new MudCommunication.FadaiEventHandler(DealFadai); }
public void ShowStatus() { MudCommunication comm = MudCommunication.GetInstance(); if (FindPath.IsRuning) { comm.SendText("emote " + FindPath.Name + "-" + FindPath.IsRuning + "-" + FindPath.StepNumber); } if (GotoTianzhufeng.IsRuning) { comm.SendText("emote " + GotoTianzhufeng.Name + "-" + GotoTianzhufeng.IsRuning + "-" + GotoTianzhufeng.StepNumber); } if (LianDan.IsRuning) { comm.SendText("emote " + LianDan.Name + "-" + LianDan.IsRuning + "-" + LianDan.StepNumber); } if (SongJing.IsRuning) { comm.SendText("emote " + SongJing.Name + "-" + SongJing.IsRuning + "-" + SongJing.StepNumber); } if (Zhenfa.IsRuning) { comm.SendText("emote " + Zhenfa.Name + "-" + Zhenfa.IsRuning + "-" + Zhenfa.StepNumber); } if (LuanZhou.IsRuning) { comm.SendText("emote " + LuanZhou.Name + "-" + LuanZhou.IsRuning + "-" + LuanZhou.StepNumber); } if (Caiqi.IsRuning) { comm.SendText("emote " + Caiqi.Name + "-" + Caiqi.IsRuning + "-" + Caiqi.StepNumber); } if (WuDangNew.IsRuning) { comm.SendText("emote " + WuDangNew.Name + "-" + WuDangNew.IsRuning + "-" + WuDangNew.StepNumber); } }
private TriggererMananger() { _comm = MudCommunication.GetInstance(); LoadTriggerer(); }