public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: PlayerId = input.ReadInt32(); break; case 16u: FightId = input.ReadInt32(); break; case 26u: stats_.AddEntriesFrom(input, _map_stats_codec); break; case 32u: case 34u: titles_.AddEntriesFrom(input, _repeated_titles_codec); break; } } }
public void AddEntriesFrom(CodedInputStream input, MapField <TKey, TValue> .Codec codec) { _internal.AddEntriesFrom(input, codec); if (_isMessageType) { foreach (var kv in _internal) { SetParent(kv.Key, kv.Value); } } }
public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: FightId = input.ReadInt32(); break; case 18u: entities_.AddEntriesFrom(input, _repeated_entities_codec); break; case 24u: TurnIndex = input.ReadInt32(); break; case 32u: TurnRemainingTimeSec = input.ReadInt32(); break; case 42u: playersCompanions_.AddEntriesFrom(input, _map_playersCompanions_codec); break; case 50u: playersCardsCount_.AddEntriesFrom(input, _map_playersCardsCount_codec); break; } } }
public void MergeFrom(CodedInputStream input) { uint num; while ((num = input.ReadTag()) != 0) { switch (num) { default: _unknownFields = UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8u: EntityId = input.ReadInt32(); break; case 16u: EntityType = input.ReadInt32(); break; case 26u: { string text2 = _single_name_codec.Read(input); if (name_ == null || text2 != "") { Name = text2; } break; } case 34u: { int?num6 = _single_defId_codec.Read(input); if (!defId_.HasValue || num6 != 0) { DefId = num6; } break; } case 42u: { int?num5 = _single_weaponId_codec.Read(input); if (!weaponId_.HasValue || num5 != 0) { WeaponId = num5; } break; } case 50u: { int?num9 = _single_genderId_codec.Read(input); if (!genderId_.HasValue || num9 != 0) { GenderId = num9; } break; } case 58u: { int?num7 = _single_playerIndexInFight_codec.Read(input); if (!playerIndexInFight_.HasValue || num7 != 0) { PlayerIndexInFight = num7; } break; } case 66u: { int?num3 = _single_ownerId_codec.Read(input); if (!ownerId_.HasValue || num3 != 0) { OwnerId = num3; } break; } case 74u: { int?num2 = _single_teamId_codec.Read(input); if (!teamId_.HasValue || num2 != 0) { TeamId = num2; } break; } case 82u: { int?num8 = _single_level_codec.Read(input); if (!level_.HasValue || num8 != 0) { Level = num8; } break; } case 88u: case 90u: properties_.AddEntriesFrom(input, _repeated_properties_codec); break; case 98u: if (position_ == null) { position_ = new CellCoord(); } input.ReadMessage(position_); break; case 106u: { int?num4 = _single_direction_codec.Read(input); if (!direction_.HasValue || num4 != 0) { Direction = num4; } break; } case 114u: caracs_.AddEntriesFrom(input, _map_caracs_codec); break; case 122u: { string text = _single_customSkin_codec.Read(input); if (customSkin_ == null || text != "") { CustomSkin = text; } break; } case 130u: { bool?flag = _single_actionDoneThisTurn_codec.Read(input); if (!actionDoneThisTurn_.HasValue || flag != false) { ActionDoneThisTurn = flag; } break; } } } }