Ejemplo n.º 1
0
			public void Read(BlamLib.IO.EndianReader s)
			{
				Valid = s.ReadInt32() > 0;
				Header.Read(s);
				Version = s.ReadInt16();
				NumberOfScenarioObjects = s.ReadInt16();
				NumberOfVariantObjects = s.ReadInt16();
				NumberOfPlaceableObjectQuotas = s.ReadInt16();
				MapId = s.ReadInt32();
				WorldBoundsXMin = s.ReadSingle(); WorldBoundsXMax = s.ReadSingle();
				WorldBoundsYMin = s.ReadSingle(); WorldBoundsYMax = s.ReadSingle();
				WorldBoundsZMin = s.ReadSingle(); WorldBoundsZMax = s.ReadSingle();
				GameEngineSubtype = s.ReadInt32();
				BudgetTotal = s.ReadSingle();
				BudgetUsed = s.ReadSingle();
				Unknown5 = s.ReadUInt32(); Unknown6 = s.ReadUInt32();
				for (int x = 0; x < Properties.Length; x++) (Properties[x] = new ObjectProperties()).Read(s);
				for (int x = 0; x < ObjectTypeMap.Length; x++) ObjectTypeMap[x] = s.ReadInt16();
				for (int x = 0; x < Quotas.Length; x++) (Quotas[x] = new ObjectQuotas()).Read(s);
			}
Ejemplo n.º 2
0
				public void Read(BlamLib.IO.EndianReader s)
				{
					ObjectFlags = s.ReadUInt32();
					Unknown004 = s.ReadUInt32();
					Unknown008 = s.ReadUInt32();
					BudgetIndex = s.ReadInt32();
					X = s.ReadSingle(); Y = s.ReadSingle(); Z = s.ReadSingle();
					Yaw = s.ReadSingle(); Pitch = s.ReadSingle(); Roll = s.ReadSingle();
					I = s.ReadSingle(); J = s.ReadSingle(); K = s.ReadSingle();
					Unknown034 = s.ReadUInt32();
					Unknown038 = s.ReadUInt32();
					GameEngineFlags = s.ReadUInt16();
					Flags = s.ReadByte();
					TeamAffiliation = s.ReadByte();
					SharedStorage = s.ReadByte();
					SpawnTime = s.ReadByte();
					CachedObjectType = s.ReadByte();
					ShapeType = s.ReadByte();
					ShapeBoundaryWidthRadius = s.ReadSingle();
					ShapeBoundaryBoxLength = s.ReadSingle();
					ShapeBoundaryPositiveHeight = s.ReadSingle();
					ShapeBoundaryNegativeHeight = s.ReadSingle();
				}
Ejemplo n.º 3
0
				public void Read(BlamLib.IO.EndianReader s)
				{
					TagIndex.Read(s);
					RuntimeMin = s.ReadByte(); RuntimeMax = s.ReadByte();
					PlacedCount = s.ReadByte(); MaxCount = s.ReadByte();
					TotalCost = s.ReadSingle();
				}
Ejemplo n.º 4
0
			public void Read(BlamLib.IO.EndianReader s)
			{
				X = s.ReadSingle();
			}