Esempio n. 1
0
			public void Write(BlamLib.IO.EndianWriter s)
			{
				foreach (string str in Names) s.WriteUnicodeString(str, 128);
			}
Esempio n. 2
0
			public void Write(BlamLib.IO.EndianWriter s)
			{
				s.Write(Unknown000);
				s.WriteUnicodeString(Name, 16);
				s.Write(Description, 128);
				s.Write(Author, 16);
				s.Write((uint)FileType);
				s.Write(Unknown0BC ? 1 : 0);
				s.Write(Unknown0C0);
				s.Write(ContentLength);
				s.Write(Unknown0D0);
				s.Write(Unknown0D8);
				MapId.Write(s);
				s.Write(GameEngineType);
				s.Write(CampaignDifficulty);
				s.Write(((uint)HopperId) << 16);
				s.Write(GameId);
			}
Esempio n. 3
0
			public override void Write(BlamLib.IO.EndianWriter s)
			{
				base.Write(s);

				s.Write(MapId);
				s.Write(ScenarioType);
				Names.Write(s);
				Descriptions.Write(s);
				s.WriteUnicodeString(BlfName, 256);
				s.WriteUnicodeString(FileName, 256);
				s.Write(MapIndex);
				s.Write(Unknown1118);
				s.Write(Unknown111C);
				s.Write(Unknown111D);
				s.Write(MaxTeams);
				s.Write(Unknown1129);
				s.Write(ushort.MinValue);
				s.Write(Unknown112C);
				foreach (CheckpointData cp in Checkpoints) cp.Write(s);
			}
Esempio n. 4
0
				public void Write(BlamLib.IO.EndianWriter s)
				{
					s.WriteUnicodeString(Name, 10);

					s.Write(GlobalValid ? 1 : 0);
					s.Write(GlobalExperience);
					s.Write(GlobalRank);
					s.Write(GlobalGrade);

					s.Write(HopperValid ? 1 : 0);
					s.Write(HopperSkill);
					s.Write(HopperSkillDisplay);
					s.Write(HopperWeight);
				}
Esempio n. 5
0
				public void Write(BlamLib.IO.EndianWriter s)
				{
					s.WriteUnicodeString(Name, 10);
					Appearance.Write(s);
					s.Write(Unknown040);
					s.Write(Unknown048);
					s.Write(Unknown049);
					s.Write(Unknown04A);
					s.Write(LastTeam);
					s.Write(Unknown04C);
					s.Write(Unknown04D);
					s.Write(HopperAccessFlags);
					s.Write(Unknown04F);
					s.Write(Unknown050);
					s.Write(Unknown051);
					s.Write(Unknown052);
					s.Write(CampaignHighestDifficulty);
					s.Write(Unknown054);
					s.Write(GamerRegion);
					s.Write(GamerZone);
					s.Write(CheatFlags);
					s.Write(BanFlags);
					s.Write(RepeatedPlayCoefficient);
					s.Write(Unknown06C ? 1 : 0);
					GlobalStats.Write(s);
					DisplayedStats.Write(s);
					HopperData.Write(s);
				}
Esempio n. 6
0
				public void Write(BlamLib.IO.EndianWriter s)
				{
					s.Write(Valid);
					s.Write(PrimaryColor);
					s.Write(SecondaryColor);
					s.Write(TertiaryColor);
					s.Write(PlayerModelChoice);
					s.Write(ForegroundEmblem);
					s.Write(BackgroundEmblem);
					s.Write(EmblemFlags);
					s.Write(EmblemPrimaryColor);
					s.Write(EmblemSecondaryColor);
					s.Write(EmblemBackgroundColor);
					s.Write(ModelChoices[0], 4);
					s.Write(ModelChoices[1], 4);
					s.WriteUnicodeString(ServiceTag, 4);
					s.Write(ushort.MinValue); // alignment
				}