Class InfoSpawnGroupLoadUnload
Namespace: ValveResourceFormat.Renderer.Entities
Assembly: Renderer.dll
info_spawngroup_load_unload. Loads another map into the running one as a spawn group on StartSpawnGroupLoad and unloads it on StartSpawnGroupUnload.
public sealed class InfoSpawnGroupLoadUnload : BaseEntityInheritance
object ← BaseEntity ← InfoSpawnGroupLoadUnload
Inherited Members
BaseEntity.Scene, BaseEntity.RootNode, BaseEntity.Transform, BaseEntity.RigidTransform, BaseEntity.EntitySystem, BaseEntity.Data, BaseEntity.SpawnData, BaseEntity.NameFixup, BaseEntity.SpawnGroup, 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.IsShown, 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
The group is found by the map it loads, so a map loads once however many of these name it, and any of them unloads or activates it. The loaded map is aligned by landmark origin only, with no rotation. The load finishes within the input instead of in the background.
Constructors
InfoSpawnGroupLoadUnload(EntitySystem, EntitySpawnInfo)
Initializes an info_spawngroup_load_unload from its keyvalues.
public InfoSpawnGroupLoadUnload(EntitySystem system, EntitySpawnInfo spawnInfo)Parameters
system EntitySystem
spawnInfo EntitySpawnInfo
Properties
Landmark
Gets the name of the info_spawngroup_landmark present in both maps.
public string Landmark { get; }Property Value
string
LoadedSpawnGroup
Gets the spawn group loaded from InfoSpawnGroupLoadUnload.MapName, or null when none is loaded.
public SpawnGroup? LoadedSpawnGroup { get; }Property Value
MapName
Gets the map to load, such as stages/lms_stage1.
public string MapName { get; }Property Value
string
Methods
DispatchInput(string, EntityInputData)
Runs the handler declared with EntityInputAttribute for an input.
protected override bool DispatchInput(string inputName, EntityInputData data)Parameters
inputName string
data EntityInputData
Returns
bool
true when a handler ran.
Spawn()
Sets up the entity (model, class keyvalues, first think). Called once the entity's spawn group has created all entities of the group, after the move parent has spawned.
public override void Spawn()Remarks
An override calls this first: it builds the node from BaseEntity.CreateRootNode() and snaps the entity onto its parent's attachment, which the rest of the override reads.

