Class WorldNode
Namespace: ValveResourceFormat.ResourceTypes
Assembly: ValveResourceFormat.dll
Represents a world node resource.
public class WorldNode : KeyValuesOrNTROInheritance
object ← Block ← KeyValuesOrNTRO ← WorldNode
Inherited Members
KeyValuesOrNTRO.Type, KeyValuesOrNTRO.Data, KeyValuesOrNTRO.Format, KeyValuesOrNTRO.Read(BinaryReader), KeyValuesOrNTRO.Serialize(Stream), KeyValuesOrNTRO.WriteText(IndentedTextWriter), Block.Type, Block.Offset, Block.Size, Block.Resource, Block.Read(BinaryReader), Block.ToString(), Block.WriteText(IndentedTextWriter), Block.Serialize(Stream)
Extension Methods
ResourceDataExtensions.AsKeyValueCollection(Block)
Properties
AggregateSceneObjects
Gets the aggregate scene objects.
public IReadOnlyList<KVObject> AggregateSceneObjects { get; }Property Value
IReadOnlyList<KVObject>
ClutterSceneObjects
Gets the clutter scene objects.
public IReadOnlyList<KVObject> ClutterSceneObjects { get; }Property Value
IReadOnlyList<KVObject>
ExtraVertexStreamOverrides
Gets the extra vertex streams bound to single draw calls of WorldNode.SceneObjects.
public IEnumerable<WorldNode.ExtraVertexStreamOverride> ExtraVertexStreamOverrides { get; }Property Value
IEnumerable<WorldNode.ExtraVertexStreamOverride>
InfoOverlays
Gets the decals placed with the map, each a box that projects a material onto what is inside it.
public IReadOnlyList<KVObject> InfoOverlays { get; }Property Value
IReadOnlyList<KVObject>
LayerNames
Gets the layer names.
public IReadOnlyList<string> LayerNames { get; }Property Value
IReadOnlyList<string>
MaterialOverrides
Gets the materials that replace those of draw calls of WorldNode.SceneObjects.
public IEnumerable<WorldNode.MaterialOverride> MaterialOverrides { get; }Property Value
IEnumerable<WorldNode.MaterialOverride>
SceneObjectLayerIndices
Layer indices for WorldNode.SceneObjects. For WorldNode.AggregateSceneObjects use the dedicated 'm_nLayer' member. Value may be null if the node has no layer system.
public IReadOnlyList<long>? SceneObjectLayerIndices { get; }Property Value
IReadOnlyList<long>?
SceneObjects
Gets the scene objects.
public IReadOnlyList<KVObject> SceneObjects { get; }Property Value
IReadOnlyList<KVObject>
VisClusterMembership
Gets the visibility cluster ids that scene objects and aggregate fragments with precomputed cluster membership index into.
public IReadOnlyList<ushort> VisClusterMembership { get; }Property Value
IReadOnlyList<ushort>
Methods
GetAggregateMeshVisClusters(KVObject)
Gets the visibility clusters the compiler assigned to one fragment of an aggregate, or null when its clusters come from its bounds instead. The list may be empty, which leaves the fragment out of vis culling.
public ushort[]? GetAggregateMeshVisClusters(KVObject aggregateMesh)Parameters
aggregateMesh KVObject
An entry of an aggregate's m_aggregateMeshes.
Returns
ushort[]?
GetExtraVertexStreams()
Reads the vertex buffers that WorldNode.ExtraVertexStreamOverrides bind.
public VBIB GetExtraVertexStreams()Returns
GetSceneObjectVisClusters(KVObject)
Gets the visibility clusters the compiler assigned to one of WorldNode.SceneObjects, or null when its clusters come from its bounds instead. An object that opts out of vis culling ignores its precomputed clusters.
public ushort[]? GetSceneObjectVisClusters(KVObject sceneObject)Parameters
sceneObject KVObject
An entry of WorldNode.SceneObjects.
Returns
ushort[]?

