Пример #1
0
 public void WriteTo(CodedOutputStream output)
 {
     if (spell_ != null)
     {
         output.WriteRawTag((byte)10);
         output.WriteMessage(Spell);
     }
     if (From != 0)
     {
         output.WriteRawTag((byte)16);
         output.WriteEnum((int)From);
     }
     if (To != 0)
     {
         output.WriteRawTag((byte)24);
         output.WriteEnum((int)To);
     }
     if (discardedBecauseHandWasFull_.HasValue)
     {
         _single_discardedBecauseHandWasFull_codec.WriteTagAndValue(output, DiscardedBecauseHandWasFull);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Пример #2
0
 public void WriteTo(CodedOutputStream output)
 {
     if (id_.HasValue)
     {
         _single_id_codec.WriteTagAndValue(output, Id);
     }
     if (Name.Length != 0)
     {
         output.WriteRawTag((byte)18);
         output.WriteString(Name);
     }
     if (God != 0)
     {
         output.WriteRawTag((byte)24);
         output.WriteInt32(God);
     }
     if (Weapon != 0)
     {
         output.WriteRawTag((byte)32);
         output.WriteInt32(Weapon);
     }
     companions_.WriteTo(output, _repeated_companions_codec);
     spells_.WriteTo(output, _repeated_spells_codec);
     summonings_.WriteTo(output, _repeated_summonings_codec);
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Пример #3
0
 /// <inheritdoc/>
 protected override void Write(ref WriteContext writer)
 {
     if (SourceValue != null)
     {
         for (int i = 0; i < SourceValue.Length; i++)
         {
             _FieldCodec.WriteTagAndValue(ref writer, SourceValue[i]);
         }
     }
 }
Пример #4
0
 public void WriteTo(CodedOutputStream output)
 {
     selectedDecks_.WriteTo(output, _repeated_selectedDecks_codec);
     if (selectedWeapon_.HasValue)
     {
         _single_selectedWeapon_codec.WriteTagAndValue(output, SelectedWeapon);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Пример #5
0
 public void WriteTo(CodedOutputStream output)
 {
     if (WeaponId != 0)
     {
         output.WriteRawTag((byte)8);
         output.WriteInt32(WeaponId);
     }
     if (deckId_.HasValue)
     {
         _single_deckId_codec.WriteTagAndValue(output, DeckId);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Пример #6
0
 public void WriteTo(CodedOutputStream output)
 {
     if (EntityId != 0)
     {
         output.WriteRawTag((byte)8);
         output.WriteInt32(EntityId);
     }
     path_.WriteTo(output, _repeated_path_codec);
     if (entityToAttackId_.HasValue)
     {
         _single_entityToAttackId_codec.WriteTagAndValue(output, EntityToAttackId);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Пример #7
0
 public void WriteTo(CodedOutputStream output)
 {
     if (SpellInstanceId != 0)
     {
         output.WriteRawTag((byte)8);
         output.WriteInt32(SpellInstanceId);
     }
     if (spellDefinitionId_.HasValue)
     {
         _single_spellDefinitionId_codec.WriteTagAndValue(output, SpellDefinitionId);
     }
     if (spellLevel_.HasValue)
     {
         _single_spellLevel_codec.WriteTagAndValue(output, SpellLevel);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Пример #8
0
 public void WriteTo(CodedOutputStream output)
 {
     if (Name.Length != 0)
     {
         output.WriteRawTag((byte)10);
         output.WriteString(Name);
     }
     if (Level != 0)
     {
         output.WriteRawTag((byte)16);
         output.WriteInt32(Level);
     }
     if (weaponId_.HasValue)
     {
         _single_weaponId_codec.WriteTagAndValue(output, WeaponId);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Пример #9
0
 public void WriteTo(CodedOutputStream output)
 {
     if (EventType != 0)
     {
         output.WriteRawTag((byte)8);
         output.WriteEnum((int)EventType);
     }
     if (EventId != 0)
     {
         output.WriteRawTag((byte)16);
         output.WriteSInt32(EventId);
     }
     if (parentEventId_.HasValue)
     {
         _single_parentEventId_codec.WriteTagAndValue(output, ParentEventId);
     }
     if (Int1 != 0)
     {
         output.WriteRawTag((byte)32);
         output.WriteInt32(Int1);
     }
     if (Int2 != 0)
     {
         output.WriteRawTag((byte)40);
         output.WriteInt32(Int2);
     }
     if (Int3 != 0)
     {
         output.WriteRawTag((byte)48);
         output.WriteInt32(Int3);
     }
     if (Int4 != 0)
     {
         output.WriteRawTag((byte)56);
         output.WriteInt32(Int4);
     }
     if (Int5 != 0)
     {
         output.WriteRawTag((byte)64);
         output.WriteInt32(Int5);
     }
     if (Int6 != 0)
     {
         output.WriteRawTag((byte)72);
         output.WriteInt32(Int6);
     }
     if (Int7 != 0)
     {
         output.WriteRawTag((byte)80);
         output.WriteInt32(Int7);
     }
     if (String1.Length != 0)
     {
         output.WriteRawTag((byte)90);
         output.WriteString(String1);
     }
     if (Bool1)
     {
         output.WriteRawTag((byte)96);
         output.WriteBool(Bool1);
     }
     if (cellCoord1_ != null)
     {
         output.WriteRawTag((byte)106);
         output.WriteMessage(CellCoord1);
     }
     if (cellCoord2_ != null)
     {
         output.WriteRawTag((byte)114);
         output.WriteMessage(CellCoord2);
     }
     if (CompanionReserveState1 != 0)
     {
         output.WriteRawTag((byte)120);
         output.WriteEnum((int)CompanionReserveState1);
     }
     if (CompanionReserveState2 != 0)
     {
         output.WriteRawTag((byte)128, (byte)1);
         output.WriteEnum((int)CompanionReserveState2);
     }
     if (DamageReductionType1 != 0)
     {
         output.WriteRawTag((byte)136, (byte)1);
         output.WriteEnum((int)DamageReductionType1);
     }
     if (FightResult1 != 0)
     {
         output.WriteRawTag((byte)144, (byte)1);
         output.WriteEnum((int)FightResult1);
     }
     if (gameStatistics1_ != null)
     {
         output.WriteRawTag((byte)154, (byte)1);
         output.WriteMessage(GameStatistics1);
     }
     if (TeamsScoreModificationReason1 != 0)
     {
         output.WriteRawTag((byte)160, (byte)1);
         output.WriteEnum((int)TeamsScoreModificationReason1);
     }
     if (optInt1_.HasValue)
     {
         _single_optInt1_codec.WriteTagAndValue(output, OptInt1);
     }
     if (optInt2_.HasValue)
     {
         _single_optInt2_codec.WriteTagAndValue(output, OptInt2);
     }
     if (optInt3_.HasValue)
     {
         _single_optInt3_codec.WriteTagAndValue(output, OptInt3);
     }
     if (optInt4_.HasValue)
     {
         _single_optInt4_codec.WriteTagAndValue(output, OptInt4);
     }
     cellCoordList1_.WriteTo(output, _repeated_cellCoordList1_codec);
     spellMovementList1_.WriteTo(output, _repeated_spellMovementList1_codec);
     castTargetList1_.WriteTo(output, _repeated_castTargetList1_codec);
     intList1_.WriteTo(output, _repeated_intList1_codec);
     intList2_.WriteTo(output, _repeated_intList2_codec);
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
Пример #10
0
 public void WriteTo(CodedOutputStream output)
 {
     if (EntityId != 0)
     {
         output.WriteRawTag((byte)8);
         output.WriteInt32(EntityId);
     }
     if (EntityType != 0)
     {
         output.WriteRawTag((byte)16);
         output.WriteInt32(EntityType);
     }
     if (name_ != null)
     {
         _single_name_codec.WriteTagAndValue(output, Name);
     }
     if (defId_.HasValue)
     {
         _single_defId_codec.WriteTagAndValue(output, DefId);
     }
     if (weaponId_.HasValue)
     {
         _single_weaponId_codec.WriteTagAndValue(output, WeaponId);
     }
     if (genderId_.HasValue)
     {
         _single_genderId_codec.WriteTagAndValue(output, GenderId);
     }
     if (playerIndexInFight_.HasValue)
     {
         _single_playerIndexInFight_codec.WriteTagAndValue(output, PlayerIndexInFight);
     }
     if (ownerId_.HasValue)
     {
         _single_ownerId_codec.WriteTagAndValue(output, OwnerId);
     }
     if (teamId_.HasValue)
     {
         _single_teamId_codec.WriteTagAndValue(output, TeamId);
     }
     if (level_.HasValue)
     {
         _single_level_codec.WriteTagAndValue(output, Level);
     }
     properties_.WriteTo(output, _repeated_properties_codec);
     if (position_ != null)
     {
         output.WriteRawTag((byte)98);
         output.WriteMessage(Position);
     }
     if (direction_.HasValue)
     {
         _single_direction_codec.WriteTagAndValue(output, Direction);
     }
     caracs_.WriteTo(output, _map_caracs_codec);
     if (customSkin_ != null)
     {
         _single_customSkin_codec.WriteTagAndValue(output, CustomSkin);
     }
     if (actionDoneThisTurn_.HasValue)
     {
         _single_actionDoneThisTurn_codec.WriteTagAndValue(output, ActionDoneThisTurn);
     }
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }