Class InfoWorldLayer
Namespace: ValveResourceFormat.Renderer.Entities
Assembly: Renderer.dll
info_world_layer. Shows and hides one world layer, and spawns and destroys the entities compiled into the layer's own entity lump, by entity I/O.
public sealed class InfoWorldLayer : BaseEntityInheritance
object ← BaseEntity ← InfoWorldLayer
Inherited Members
BaseEntity.Scene, BaseEntity.RootNode, BaseEntity.Transform, BaseEntity.RigidTransform, BaseEntity.LayerName, BaseEntity.EntitySystem, BaseEntity.Data, BaseEntity.SpawnData, BaseEntity.NameFixup, BaseEntity.Classname, BaseEntity.TargetName, BaseEntity.SpawnFlags, BaseEntity.SpawnTransform, BaseEntity.Owner, BaseEntity.MoveParent, BaseEntity.EntityScale, BaseEntity.ModelName, BaseEntity.Origin, BaseEntity.Angles, BaseEntity.WorldOrigin, BaseEntity.WorldAngles, BaseEntity.Velocity, BaseEntity.AngularVelocity, BaseEntity.NextThink, BaseEntity.MoveDoneTime, BaseEntity.IsRemoved, BaseEntity.Collider, BaseEntity.IsSolid, BaseEntity.IsTrigger, BaseEntity.IsDrawn, BaseEntity.IsCollidable, BaseEntity.TouchingEntities, BaseEntity.HasSpawnFlags<TSpawnFlags>(TSpawnFlags), BaseEntity.Spawn(), BaseEntity.Activate(), BaseEntity.Think(), BaseEntity.RoundStart(), BaseEntity.MoveDone(), BaseEntity.TryGetTouchBounds(out Vector3, out Vector3), BaseEntity.ObjectCaps, BaseEntity.Use(BaseEntity?), BaseEntity.Teleport(Vector3, Vector3?), BaseEntity.AcceptInput(string, EntityInputData), BaseEntity.SetNextThink(float), BaseEntity.SetMoveDoneTime(float), BaseEntity.GetSurfaceVelocity(Vector3), BaseEntity.AngleMod(float)
Remarks
Entities spawned by an input after the map has loaded are not bound to the scene's cubemaps and light probes, which are only assigned when the scene is first initialized.
Constructors
InfoWorldLayer(EntitySystem, EntitySpawnInfo)
Initializes an info_world_layer from its keyvalues.
public InfoWorldLayer(EntitySystem system, EntitySpawnInfo spawnInfo)Parameters
system EntitySystem
spawnInfo EntitySpawnInfo
Properties
IsVisibleOnSpawn
Gets whether the controlled layer is shown when the map loads.
public bool IsVisibleOnSpawn { get; }Property Value
LayerEntities
Gets the entities spawned from the layer's entity lump, or null when they are not spawned.
public IReadOnlyList<BaseEntity>? LayerEntities { get; }Property Value
WorldLayerName
Gets the name of the world layer this entity controls, which also names its entity lump.
public string? WorldLayerName { get; }Property Value
WorldName
Gets the name of the world the layer belongs to.
public string? WorldName { get; }Property Value
Methods
OnRemove()
Called as the entity leaves the world, before its nodes are taken out of the scene. Source's UpdateOnRemove: the place to let go of anything the entity started, such as a playing sound.
protected override void OnRemove()SetLayerVisible(bool)
Shows or hides the controlled layer.
public void SetLayerVisible(bool visible)Parameters
visible bool

