Class SpawnGroup
Namespace: ValveResourceFormat.Renderer.World
Assembly: Renderer.dll
A map loaded into another map, such as a 3D sky or a stage loaded at runtime.
public sealed class SpawnGroupInheritance
Remarks
Each group gets a separate scene because baked lighting and visibility only apply to the geometry they were compiled with.
Constructors
SpawnGroup(string, Scene, Matrix4x4, IReadOnlyList<Entity>)
Initializes a new instance of the class.
public SpawnGroup(string mapName, Scene scene, Matrix4x4 transform, IReadOnlyList<EntityLump.Entity> entities)Parameters
mapName string
scene Scene
transform Matrix4x4
entities IReadOnlyList<EntityLump.Entity>
Properties
Entities
Gets the keyvalues of the spawned entities.
public IReadOnlyList<EntityLump.Entity> Entities { get; }Property Value
IReadOnlyList<EntityLump.Entity>
MapName
Gets the loaded map, e.g. maps/prefabs/de_dust2/de_dust2_skybox.
public string MapName { get; }Property Value
PlacedBy
Gets the entity that loaded the group, such as a skybox_reference.
public BaseEntity? PlacedBy { get; init; }Property Value
Scene
Gets the scene holding the loaded nodes.
public Scene Scene { get; }Property Value
Transform
Gets the placement of the map, already applied to everything it loaded.
public Matrix4x4 Transform { get; }Property Value
WorldGroup
Gets the world group, such as skyboxWorldGroup0 for a 3D sky, or null for the main world.
public string? WorldGroup { get; }Property Value
Methods
EntityOriginToWorld(Vector3)
Maps an authored entity origin to viewer world space.
public Vector3 EntityOriginToWorld(Vector3 origin)Parameters
origin Vector3

