Beispiel #1
0
 public TeamAddedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.TeamAdded, proto)
 {
     concernedEntity = proto.Int1;
     teamIndex       = proto.Int2;
     isLocalTeam     = proto.Bool1;
 }
Beispiel #2
0
 public static void RequestFight(FightEventData data)
 {
     if (OnFightRequested != null)
     {
         OnFightRequested(data);
     }
 }
 public EntityProtectionAddedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.EntityProtectionAdded, proto)
 {
     concernedEntity = proto.Int1;
     protectorId     = proto.Int2;
     fixedValue      = proto.Int3;
     percentsValues  = proto.Int4;
 }
Beispiel #4
0
        private void OnFightEventsEvent(FightEventsEvent obj)
        {
            m_fightEventBuffer.Clear();
            RepeatedField <FightEventData> events = obj.Events;
            int count = events.get_Count();

            for (int i = 0; i < count; i++)
            {
                FightEventData proto = events.get_Item(i);
                m_fightEventBuffer.Add(FightEventFactory.FromProto(proto));
            }
            FightLogicExecutor.ProcessFightEvents(obj.FightId, m_fightEventBuffer);
        }
Beispiel #5
0
 public BossTurnEndEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.BossTurnEnd, proto)
 {
 }
Beispiel #6
0
 public void Fight(FightEventData data)
 {
     StartCoroutine(Attack(data.lhs, data.rhs));
 }
 public EffectStoppedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.EffectStopped, proto)
 {
 }
Beispiel #8
0
 public DiceThrownEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.DiceThrown, proto)
 {
     concernedEntity = proto.Int1;
     diceValue       = proto.Int2;
 }
 public ReserveUsedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.ReserveUsed, proto)
 {
     concernedEntity = proto.Int1;
     valueBefore     = proto.Int2;
 }
 public EventForParentingEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.EventForParenting, proto)
 {
 }
 public EntityProtectionRemovedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.EntityProtectionRemoved, proto)
 {
     concernedEntity = proto.Int1;
     protectorId     = proto.Int2;
 }