コード例 #1
0
        public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
        {
            Array.Clear(PacketProcessor.m_packetHandlers, 0, PacketProcessor.m_packetHandlers.Length);
            int count = PacketProcessor.SearchPacketHandlers("v168", Assembly.GetAssembly(typeof(GameServer)));

            PacketProcessor.log.Info("PacketProcessor: Loaded " + count + " handlers from GameServer Assembly!");
        }
コード例 #2
0
ファイル: CommandMgr.cs プロジェクト: SkelletonX/DDTServer
        public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
        {
            CommandMgr.handles.Clear();
            int a = CommandMgr.SearchCommandHandlers(Assembly.GetAssembly(typeof(BaseGame)));

            CommandMgr.log.Debug("Loaded" + a.ToString() + "Command");
        }
コード例 #3
0
 public Road(Node a, Node b, int id, string name = "a road")
 {
     aNode     = a;
     bNode     = b;
     this.name = name;
     this.id   = id;
     roadEvent = RoadEvent.Nothing;
 }
コード例 #4
0
ファイル: SpellMgr.cs プロジェクト: uvbs/DDTank-3.0
        public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
        {
            handles.Clear();
            int count = SearchSpellHandlers(Assembly.GetAssembly(typeof(GameServer)));

            if (log.IsInfoEnabled)
            {
                log.Info("SpellMgr: Loaded " + count + " spell handlers from GameServer Assembly!");
            }
        }
コード例 #5
0
        public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
        {
            SpellMgr.handles.Clear();
            int num = SpellMgr.SearchSpellHandlers(Assembly.GetAssembly(typeof(BaseGame)));

            if (SpellMgr.log.IsInfoEnabled)
            {
                SpellMgr.log.Info("SpellMgr: Loaded " + num + " spell handlers from GameServer Assembly!");
            }
        }
コード例 #6
0
ファイル: SceneGameMgr.cs プロジェクト: uvbs/DDTank-3.0
        public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
        {
            Array.Clear(_gameProcessors, 0, _gameProcessors.Length);

            int count = SearchGameProcessors(typeof(GameServer).Assembly);

            if (log.IsInfoEnabled)
            {
                log.Info(string.Format("GameProcessor: Loaded {0} processors!", count));
            }
        }
コード例 #7
0
 public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
 {
     LoadCommands();
 }
コード例 #8
0
ファイル: CommandMgr.cs プロジェクト: changthai2540/DDTank-II
 public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
 {
     CommandMgr.handles.Clear();
     CommandMgr.SearchCommandHandlers(Assembly.GetAssembly(typeof(BaseGame)));
 }
コード例 #9
0
 public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
 {
     handles.Clear();
     SearchCommandHandlers(Assembly.GetAssembly(typeof(GameServer)));
 }
コード例 #10
0
 public static void AddModule(RoadEvent e, object sender, EventArgs arguments)
 {
     Login.log.Info("Load Game Module");
     Server.AddModule(typeof(Game));
 }
コード例 #11
0
ファイル: CommandMgr.cs プロジェクト: geniushuai/DDTank-3.0
 public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
 {
     handles.Clear();
     SearchCommandHandlers(Assembly.GetAssembly(typeof(GameServer)));
 }
コード例 #12
0
 public void ResetState()
 {
     roadEvent = RoadEvent.Nothing;
 }
コード例 #13
0
 public static void AddModule(RoadEvent e, object sender, EventArgs arguments)
 {
     Charge.log.Info("Load Charge Module");
     Server.AddModule(typeof(Charge));
 }