Exemplo n.º 1
0
        public static bool Startup()
        {
            if (!SfxManager.Startup())
            {
                return(false);
            }

            if (!LabelManager.Startup())
            {
                return(false);
            }

            if (!MapManager.Startup())
            {
                return(false);
            }

            if (!NpcManager.Startup())
            {
                return(false);
            }

            if (!BulletManager.Startup())
            {
                return(false);
            }

            if (!EmitterManager.Startup())
            {
                return(false);
            }

            if (!SkillManager.Startup())
            {
                return(false);
            }

            if (!BuffManager.Startup())
            {
                return(false);
            }

            if (!WaveManager.Startup())
            {
                return(false);
            }

            Calculator = new CombatCalculator();

            EventManager.Register <NpcIdleEvent>(OnCombatEvent);
            EventManager.Register <NpcWalkEvent>(OnCombatEvent);
            EventManager.Register <NpcSkillEvent>(OnCombatEvent);
            EventManager.Register <NpcDieEvent>(OnCombatEvent);
            EventManager.Register <NpcBackEvent>(OnCombatEvent);

            return(true);
        }