public ReservePointsChangedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.ReservePointsChanged, proto)
 {
     concernedEntity = proto.Int1;
     valueBefore     = proto.Int2;
     valueAfter      = proto.Int3;
 }
Exemple #2
0
 public GameEndedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.GameEnded, proto)
 {
     result        = proto.FightResult1;
     gameStats     = proto.GameStatistics1;
     fightDuration = proto.Int1;
 }
 public MaxLifeChangedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.MaxLifeChanged, proto)
 {
     concernedEntity = proto.Int1;
     maxLifeBefore   = proto.Int2;
     maxLifeAfter    = proto.Int3;
 }
Exemple #4
0
 public FloorMechanismActivationEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.FloorMechanismActivation, proto)
 {
     concernedEntity      = proto.Int1;
     activator            = proto.Int2;
     entitiesInAssemblage = (IReadOnlyList <int>)proto.IntList1;
 }
Exemple #5
0
 public DamageReducedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.DamageReduced, proto)
 {
     concernedEntity = proto.Int1;
     reductionValue  = proto.Int2;
     reason          = proto.DamageReductionType1;
 }
Exemple #6
0
 public EntitySkinChangedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.EntitySkinChanged, proto)
 {
     concernedEntity = proto.Int1;
     characterSkinId = proto.Int2;
     gender          = proto.Int3;
 }
 public CompanionAddedInReserveEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.CompanionAddedInReserve, proto)
 {
     concernedEntity = proto.Int1;
     companionDefId  = (IReadOnlyList <int>)proto.IntList1;
     levels          = (IReadOnlyList <int>)proto.IntList2;
 }
 public MagicalDamageModifierChangedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.MagicalDamageModifierChanged, proto)
 {
     concernedEntity = proto.Int1;
     valueBefore     = proto.Int2;
     valueAfter      = proto.Int3;
 }
Exemple #9
0
 public BossSummoningsWarningEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.BossSummoningsWarning, proto)
 {
     addWarning = proto.Bool1;
     positions  = (IReadOnlyList <CellCoord>)proto.CellCoordList1;
     directions = (IReadOnlyList <int>)proto.IntList1;
 }
Exemple #10
0
 public TeamTurnStartedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.TeamTurnStarted, proto)
 {
     turnIndex    = proto.Int1;
     teamIndex    = proto.Int2;
     turnDuration = proto.Int3;
 }
Exemple #11
0
 public PhysicalHealModifierChangedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.PhysicalHealModifierChanged, proto)
 {
     concernedEntity = proto.Int1;
     valueBefore     = proto.Int2;
     valueAfter      = proto.Int3;
 }
Exemple #12
0
 public EntityAnimationEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.EntityAnimation, proto)
 {
     concernedEntity  = proto.Int1;
     animationKey     = proto.Int2;
     additionalCoords = (IReadOnlyList <CellCoord>)proto.CellCoordList1;
 }
Exemple #13
0
 public BossLifeModificationEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.BossLifeModification, proto)
 {
     valueBefore    = proto.Int1;
     valueAfter     = proto.Int2;
     sourceFightId  = proto.Int3;
     sourcePlayerId = proto.Int4;
 }
Exemple #14
0
 public SpellCostModifierAddedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.SpellCostModifierAdded, proto)
 {
     concernedEntity   = proto.Int1;
     modifierId        = proto.Int2;
     modificationValue = proto.Int3;
     spellFiltersJson  = proto.String1;
 }
 public PropertyChangedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.PropertyChanged, proto)
 {
     concernedEntity  = proto.Int1;
     propertyId       = proto.Int2;
     active           = proto.Bool1;
     propertyReplaced = proto.OptInt1;
 }
 public ElementPointsChangedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.ElementPointsChanged, proto)
 {
     concernedEntity = proto.Int1;
     valueBefore     = proto.Int2;
     valueAfter      = proto.Int3;
     element         = proto.Int4;
 }
Exemple #17
0
 public AttackEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.Attack, proto)
 {
     concernedEntity = proto.Int1;
     target          = proto.Int2;
     attackerCoord   = proto.CellCoord1;
     targetCoord     = proto.CellCoord2;
 }
Exemple #18
0
 public EntityAreaMovedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.EntityAreaMoved, proto)
 {
     concernedEntity = proto.Int1;
     movementType    = proto.Int2;
     direction       = proto.Int3;
     cells           = (IReadOnlyList <CellCoord>)proto.CellCoordList1;
 }
Exemple #19
0
 public ActionPointsChangedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.ActionPointsChanged, proto)
 {
     concernedEntity = proto.Int1;
     valueBefore     = proto.Int2;
     valueAfter      = proto.Int3;
     isCost          = proto.Bool1;
 }
 public CompanionGivenEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.CompanionGiven, proto)
 {
     concernedEntity = proto.Int1;
     companionDefId  = proto.Int2;
     companionLevel  = proto.Int3;
     toFightId       = proto.Int4;
     toPlayerId      = proto.Int5;
 }
Exemple #21
0
 public CompanionReserveStateChangedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.CompanionReserveStateChanged, proto)
 {
     concernedEntity  = proto.Int1;
     companionDefId   = proto.Int2;
     state            = proto.CompanionReserveState1;
     previousState    = proto.CompanionReserveState2;
     hasPreviousState = proto.Bool1;
 }
Exemple #22
0
 public ArmoredLifeChangedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.ArmoredLifeChanged, proto)
 {
     concernedEntity = proto.Int1;
     lifeBefore      = proto.OptInt1;
     lifeAfter       = proto.OptInt2;
     armorBefore     = proto.OptInt3;
     armorAfter      = proto.OptInt4;
 }
 public FloorMechanismAddedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.FloorMechanismAdded, proto)
 {
     concernedEntity = proto.Int1;
     entityDefId     = proto.Int2;
     ownerId         = proto.Int3;
     level           = proto.Int4;
     refCoord        = proto.CellCoord1;
 }
Exemple #24
0
 public CompanionReceivedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.CompanionReceived, proto)
 {
     concernedEntity = proto.Int1;
     companionDefId  = proto.Int2;
     companionLevel  = proto.Int3;
     fightId         = proto.Int4;
     fromFightId     = proto.Int5;
     fromPlayerId    = proto.Int6;
 }
Exemple #25
0
 public CompanionAddedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.CompanionAdded, proto)
 {
     concernedEntity = proto.Int1;
     entityDefId     = proto.Int2;
     ownerId         = proto.Int3;
     direction       = proto.Int4;
     level           = proto.Int5;
     refCoord        = proto.CellCoord1;
 }
 public PlaySpellEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.PlaySpell, proto)
 {
     concernedEntity  = proto.Int1;
     spellInstanceId  = proto.Int2;
     spellDefId       = proto.Int3;
     spellLevel       = proto.Int4;
     actionPointsCost = proto.Int5;
     targets          = (IReadOnlyList <CastTarget>)proto.CastTargetList1;
 }
Exemple #27
0
 public FloatingCounterValueChangedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.FloatingCounterValueChanged, proto)
 {
     concernedEntity     = proto.Int1;
     valueBefore         = proto.Int2;
     valueAfter          = proto.Int3;
     floatingCounterType = proto.Int4;
     sightProperty       = proto.OptInt1;
     counterReplaced     = proto.OptInt2;
 }
Exemple #28
0
 public TeamsScoreModificationEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.TeamsScoreModification, proto)
 {
     firstTeamScoreBefore  = proto.Int1;
     firstTeamScoreAfter   = proto.Int2;
     secondTeamScoreBefore = proto.Int3;
     secondTeamScoreAfter  = proto.Int4;
     relatedFightId        = proto.Int5;
     reason           = proto.TeamsScoreModificationReason1;
     relatedPlayersId = (IReadOnlyList <int>)proto.IntList1;
 }
Exemple #29
0
 public PlayerAddedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.PlayerAdded, proto)
 {
     concernedEntity  = proto.Int1;
     teamId           = proto.Int2;
     baseActionPoints = proto.Int3;
     index            = proto.Int4;
     teamIndex        = proto.Int5;
     name             = proto.String1;
     isLocalPlayer    = proto.Bool1;
 }
 public HeroAddedEvent(FightEventData proto)
     : base(FightEventData.Types.EventType.HeroAdded, proto)
 {
     concernedEntity = proto.Int1;
     entityDefId     = proto.Int2;
     ownerId         = proto.Int3;
     direction       = proto.Int4;
     level           = proto.Int5;
     gender          = proto.Int6;
     skinId          = proto.Int7;
     refCoord        = proto.CellCoord1;
 }