Exemplo n.º 1
0
        public GameLogicManager()
        {
            m_LogicTickManager = new LogicTickManager();
            m_LogicTickManager.AddTickable(new MovementSystem());
            m_LogicTickManager.AddTickable(new CollideSystem());
            m_LogicTickManager.AddTickable(new TrackingSystem());
            m_LogicTickManager.AddTickable(new RecoverySystem());

            var btSystem = new BehaviourTreeSystem();

            m_LogicTickManager.AddTickable(btSystem);

            m_AbilitySystem = new AbilitySystem();
            m_LogicTickManager.AddTickable(m_AbilitySystem);

            m_ModifierSystem = new ModifierSystem();
            m_LogicTickManager.AddTickable(m_ModifierSystem);

            m_EntitySystem = new EntitySystem();
            m_LogicTickManager.AddTickable(m_EntitySystem);

            Game.Instance.frameDataCollector.AddProvider(btSystem);

            m_EntityManager = new EntityManager();
        }
Exemplo n.º 2
0
 public override void RunCommand(string[] args)
 {
     ModifierSystem.ApplyModifier(args[1], args[2], int.Parse(args[3]));
 }
Exemplo n.º 3
0
 protected override void ActivatePerk(int amount)
 {
     ModifierSystem.ApplyModifier("speed", "perk_speed", amount);
 }