public BossActiveSkillUsingSystem(Contexts contexts, TurnNotification noti, SystemController syscon)
     : base(contexts)
 {
     _cardContext = contexts.card;
     _unitContext = contexts.unit;
     _eventContext = contexts.gameEvent;
     _noti = noti;
     _syscon = syscon;
 }
Exemplo n.º 2
0
        public void Init()
        {
            _isAbilityCalled = false;

            _noti = new GameObject().AddComponent <TurnNotification>();

            _systems.Add(new BossActiveSkillUsingSystem(_contexts, _noti, TestHelper.CreateSystemController()));

            _player = CreatePlayerEntity(-1);
            _player.isBossPlayer = true;

            var unit = _contexts.unit.CreateEntity();

            unit.AddOwner(_player);

            var card = _contexts.card.CreateEntity();

            card.AddSkillCard(SkillCard.Monolith_JudgementLight);
            card.AddAbility(new TestAbility());
            card.AddOwner(_player);
        }
Exemplo n.º 3
0
 public TurnNotificationSystem(Contexts contexts, TurnNotification notification) : base(contexts.game)
 {
     _context = contexts.game;
     _noti    = notification;
 }