public override void Deserialize(ICustomDataInput reader) { SubAreaId = reader.ReadVarShort(); WaitingForHelpInfo = new ProtectedEntityWaitingForHelpInfo(); WaitingForHelpInfo.Deserialize(reader); var countAllyCharactersInformations = reader.ReadShort(); AllyCharactersInformations = new List <CharacterMinimalPlusLookInformations>(); for (short i = 0; i < countAllyCharactersInformations; i++) { var allyCharactersInformationstypeId = reader.ReadShort(); CharacterMinimalPlusLookInformations type = new CharacterMinimalPlusLookInformations(); type.Deserialize(reader); AllyCharactersInformations.Add(type); } var countEnemyCharactersInformations = reader.ReadShort(); EnemyCharactersInformations = new List <CharacterMinimalPlusLookInformations>(); for (short i = 0; i < countEnemyCharactersInformations; i++) { var enemyCharactersInformationstypeId = reader.ReadShort(); CharacterMinimalPlusLookInformations type = new CharacterMinimalPlusLookInformations(); type.Deserialize(reader); EnemyCharactersInformations.Add(type); } }
public override void Deserialize(ICustomDataInput reader) { base.Deserialize(reader); WaitingForHelpInfo = new ProtectedEntityWaitingForHelpInfo(); WaitingForHelpInfo.Deserialize(reader); }