コード例 #1
0
ファイル: BLF.cs プロジェクト: CodeAsm/open-sauce
			public void Read(BlamLib.IO.EndianReader s)
			{
				for (int x = 0; x < Names.Length; x++) Names[x] = s.ReadUnicodeString(128);
			}
コード例 #2
0
ファイル: BLF.cs プロジェクト: CodeAsm/open-sauce
			public void Read(BlamLib.IO.EndianReader s)
			{
				Unknown000 = s.ReadUInt64();
				Name = s.ReadUnicodeString(16);
				Description = s.ReadAsciiString(128);
				Author = s.ReadAsciiString(16);
				FileType = (ContentFileType)s.ReadUInt32();
				Unknown0BC = s.ReadInt32() > 0;
				Unknown0C0 = s.ReadUInt64();
				ContentLength = s.ReadUInt64();
				Unknown0D0 = s.ReadUInt64();
				Unknown0D8 = s.ReadInt32();
				MapId.Read(s);
				GameEngineType = s.ReadInt32();
				CampaignDifficulty = s.ReadInt32();
				HopperId = (ushort)((s.ReadUInt32() & 0xFFFF0000) >> 16);
				GameId = s.ReadUInt64();
			}
コード例 #3
0
ファイル: BLF.cs プロジェクト: CodeAsm/open-sauce
				public void Read(BlamLib.IO.EndianReader s)
				{
					Name = s.ReadUnicodeString(10);
					Appearance.Read(s);
					Unknown040 = s.ReadUInt64();
					Unknown048 = s.ReadBool();
					Unknown049 = s.ReadBool();
					Unknown04A = s.ReadBool();
					LastTeam = s.ReadByte();
					Unknown04C = s.ReadBool();
					Unknown04D = s.ReadBool();
					HopperAccessFlags = s.ReadByte();
					Unknown04F = s.ReadBool();
					Unknown050 = s.ReadBool();
					Unknown051 = s.ReadBool();
					Unknown052 = s.ReadBool();
					CampaignHighestDifficulty = s.ReadByte();
					Unknown054 = s.ReadInt32();
					GamerRegion = s.ReadInt32();
					GamerZone = s.ReadInt32();
					CheatFlags = s.ReadUInt32();
					BanFlags = s.ReadUInt32();
					RepeatedPlayCoefficient = s.ReadInt32();
					Unknown06C = s.ReadInt32() > 0;
					GlobalStats.Read(s);
					DisplayedStats.Read(s);
					HopperData.Read(s);
				}
コード例 #4
0
ファイル: BLF.cs プロジェクト: CodeAsm/open-sauce
				public void Read(BlamLib.IO.EndianReader s)
				{
					Name = s.ReadUnicodeString(10);
					Team = s.ReadInt32();
					AssignedTeam = s.ReadInt32();
					
					GlobalValid = s.ReadInt32() > 0;
					GlobalExperience = s.ReadInt32();
					GlobalRank = s.ReadInt32();
					GlobalGrade = s.ReadInt32();

					HopperValid = s.ReadInt32() > 0;
					HopperSkill = s.ReadInt32();
					HopperSkillDisplay = s.ReadInt32();
					HopperWeight = s.ReadInt32();
				}
コード例 #5
0
ファイル: BLF.cs プロジェクト: CodeAsm/open-sauce
				public void Read(BlamLib.IO.EndianReader s)
				{
					Valid = s.ReadBool();
					PrimaryColor = s.ReadByte();
					SecondaryColor = s.ReadByte();
					TertiaryColor = s.ReadByte();
					PlayerModelChoice = s.ReadByte();
					ForegroundEmblem = s.ReadByte();
					BackgroundEmblem = s.ReadByte();
					EmblemFlags = s.ReadByte();
					EmblemPrimaryColor = s.ReadByte();
					EmblemSecondaryColor = s.ReadByte();
					EmblemBackgroundColor = s.ReadByte();
					ModelChoices[0] = s.ReadBytes(4);
					ModelChoices[1] = s.ReadBytes(4);
					ServiceTag = s.ReadUnicodeString(4);
					s.Seek(sizeof(ushort), System.IO.SeekOrigin.Current); // alignment
				}