本文整理汇总了C#中Package.ReadNameValue方法的典型用法代码示例。如果您正苦于以下问题:C# Package.ReadNameValue方法的具体用法?C# Package.ReadNameValue怎么用?C# Package.ReadNameValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Package
的用法示例。
在下文中一共展示了Package.ReadNameValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read
/// <summary></summary>
public static Polygon Read(BinaryReader reader, Package package)
{
int vertexCount = UIndex.Read(reader);
Polygon result = new Polygon() {
Vertices = new Vector3f[vertexCount],
Base = reader.ReadVector3f(),
Normal = reader.ReadVector3f(),
TextureU = reader.ReadVector3f(),
TextureV = reader.ReadVector3f()
};
for (var index = 0; index < vertexCount; index++)
result.Vertices[index] = reader.ReadVector3f();
result.Flags = reader.ReadInt32();
result.ActorReference = package.ReadReference(reader);
result.TextureReference = package.ReadReference(reader);
result.ItemName = package.ReadNameValue(reader);
result.Link = UIndex.Read(reader);
result.BrushPolygon = UIndex.Read(reader);
result.PanU = reader.ReadUInt16();
result.PanV = reader.ReadUInt16();
return result;
}