本文整理汇总了C#中BlamLib.ReadSingle方法的典型用法代码示例。如果您正苦于以下问题:C# BlamLib.ReadSingle方法的具体用法?C# BlamLib.ReadSingle怎么用?C# BlamLib.ReadSingle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlamLib
的用法示例。
在下文中一共展示了BlamLib.ReadSingle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read
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);
}
示例2: Read
public void Read(BlamLib.IO.EndianReader s)
{
X = s.ReadSingle();
}