コード例 #1
0
 public void WriteTo(CodedOutputStream output)
 {
     if (FightId != 0)
     {
         output.WriteRawTag((byte)8);
         output.WriteInt32(FightId);
     }
     entities_.WriteTo(output, _repeated_entities_codec);
     if (TurnIndex != 0)
     {
         output.WriteRawTag((byte)24);
         output.WriteInt32(TurnIndex);
     }
     if (TurnRemainingTimeSec != 0)
     {
         output.WriteRawTag((byte)32);
         output.WriteInt32(TurnRemainingTimeSec);
     }
     playersCompanions_.WriteTo(output, _map_playersCompanions_codec);
     playersCardsCount_.WriteTo(output, _map_playersCardsCount_codec);
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
コード例 #2
0
 public void WriteTo(CodedOutputStream output)
 {
     if (PlayerId != 0)
     {
         output.WriteRawTag((byte)8);
         output.WriteInt32(PlayerId);
     }
     if (FightId != 0)
     {
         output.WriteRawTag((byte)16);
         output.WriteInt32(FightId);
     }
     stats_.WriteTo(output, _map_stats_codec);
     titles_.WriteTo(output, _repeated_titles_codec);
     if (_unknownFields != null)
     {
         _unknownFields.WriteTo(output);
     }
 }
コード例 #3
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);
     }
 }
コード例 #4
0
 public void WriteTo(CodedOutputStream output, MapField <TKey, TValue> .Codec codec)
 {
     _internal.WriteTo(output, codec);
 }