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!");
        }
Exemple #2
0
        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");
        }
Exemple #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;
 }
Exemple #4
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!");
            }
        }
Exemple #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!");
            }
        }
Exemple #6
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));
            }
        }
Exemple #7
0
 public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
 {
     LoadCommands();
 }
 public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
 {
     CommandMgr.handles.Clear();
     CommandMgr.SearchCommandHandlers(Assembly.GetAssembly(typeof(BaseGame)));
 }
Exemple #9
0
 public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
 {
     handles.Clear();
     SearchCommandHandlers(Assembly.GetAssembly(typeof(GameServer)));
 }
Exemple #10
0
 public static void AddModule(RoadEvent e, object sender, EventArgs arguments)
 {
     Login.log.Info("Load Game Module");
     Server.AddModule(typeof(Game));
 }
Exemple #11
0
 public static void OnScriptCompiled(RoadEvent ev, object sender, EventArgs args)
 {
     handles.Clear();
     SearchCommandHandlers(Assembly.GetAssembly(typeof(GameServer)));
 }
Exemple #12
0
 public void ResetState()
 {
     roadEvent = RoadEvent.Nothing;
 }
Exemple #13
0
 public static void AddModule(RoadEvent e, object sender, EventArgs arguments)
 {
     Charge.log.Info("Load Charge Module");
     Server.AddModule(typeof(Charge));
 }