public GameContextBasicSpawnInformation( uint teamId, bool alive, GameContextActorPositionInformations informations) { this.teamId = teamId; this.alive = alive; this.informations = informations; }
public virtual void Deserialize(IDataReader reader) { this.teamId = (uint)reader.ReadByte(); if (this.teamId < 0U) { throw new Exception("Forbidden value (" + (object)this.teamId + ") on element of GameContextBasicSpawnInformation.teamId."); } this.alive = reader.ReadBoolean(); this.informations = ProtocolTypeManager.GetInstance <GameContextActorPositionInformations>((uint)reader.ReadUShort()); this.informations.Deserialize(reader); }