internal ScenarioPlayersBlockBase(BinaryReader binaryReader) { this.position = binaryReader.ReadVector3(); this.facingDegrees = binaryReader.ReadSingle(); this.teamDesignator = (TeamDesignator)binaryReader.ReadInt16(); this.bSPIndex = binaryReader.ReadInt16(); this.gameType1 = (GameType1)binaryReader.ReadInt16(); this.gameType2 = (GameType2)binaryReader.ReadInt16(); this.gameType3 = (GameType3)binaryReader.ReadInt16(); this.gameType4 = (GameType4)binaryReader.ReadInt16(); this.spawnType0 = (SpawnType0)binaryReader.ReadInt16(); this.spawnType1 = (SpawnType1)binaryReader.ReadInt16(); this.spawnType2 = (SpawnType2)binaryReader.ReadInt16(); this.spawnType3 = (SpawnType3)binaryReader.ReadInt16(); this.eMPTYSTRING = binaryReader.ReadStringID(); this.eMPTYSTRING0 = binaryReader.ReadStringID(); this.campaignPlayerType = (CampaignPlayerType)binaryReader.ReadInt16(); this.invalidName_ = binaryReader.ReadBytes(6); }
public ScenarioPlayersBlock(BinaryReader binaryReader) { this.position = binaryReader.ReadVector3(); this.facingDegrees = binaryReader.ReadSingle(); this.teamDesignator = (TeamDesignator)binaryReader.ReadInt16(); this.bSPIndex = binaryReader.ReadInt16(); this.gameType1 = (GameType1)binaryReader.ReadInt16(); this.gameType2 = (GameType2)binaryReader.ReadInt16(); this.gameType3 = (GameType3)binaryReader.ReadInt16(); this.gameType4 = (GameType4)binaryReader.ReadInt16(); this.spawnType0 = (SpawnType0)binaryReader.ReadInt16(); this.spawnType1 = (SpawnType1)binaryReader.ReadInt16(); this.spawnType2 = (SpawnType2)binaryReader.ReadInt16(); this.spawnType3 = (SpawnType3)binaryReader.ReadInt16(); this.eMPTYSTRING = binaryReader.ReadStringID(); this.eMPTYSTRING0 = binaryReader.ReadStringID(); this.campaignPlayerType = (CampaignPlayerType)binaryReader.ReadInt16(); this.padding = binaryReader.ReadBytes(6); }