Class FuncBrush
Namespace: ValveResourceFormat.Renderer.Entities
Assembly: Renderer.dll
func_brush. A piece of world geometry a map can show, hide, and make solid or not. Enable and Disable switch drawing and solidity together, as in the engine; SetSolid and SetNonsolid leave what is drawn alone. The authored solidity decides what "solid" means for a given brush.
public sealed class FuncBrush : BaseModelEntityInheritance
object ← BaseEntity ← BaseModelEntity ← FuncBrush
Inherited Members
BaseModelEntity.ModelNode, BaseEntity.Scene, BaseEntity.RootNode, BaseEntity.Transform, BaseEntity.LayerName, BaseEntity.EntitySystem, BaseEntity.Data, BaseEntity.Classname, BaseEntity.TargetName, BaseEntity.SpawnFlags, BaseEntity.ParentTransform, BaseEntity.Owner, BaseEntity.MoveParent, BaseEntity.EntityScale, BaseEntity.ModelName, BaseEntity.Origin, BaseEntity.Angles, BaseEntity.Velocity, BaseEntity.AngularVelocity, BaseEntity.NextThink, BaseEntity.MoveDoneTime, BaseEntity.IsRemoved, BaseEntity.Collider, BaseEntity.IsSolid, BaseEntity.IsTrigger, BaseEntity.IsDrawn, BaseEntity.InPlayableWorld, 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)
Constructors
FuncBrush(EntitySystem, EntitySpawnInfo)
Initializes a func_brush from its keyvalues.
public FuncBrush(EntitySystem system, EntitySpawnInfo spawnInfo)Parameters
system EntitySystem
spawnInfo EntitySpawnInfo
Properties
IsEnabled
Gets whether the brush is switched on: drawn, and solid if its solidity allows.
public bool IsEnabled { get; }Property Value
Solidity
Gets how this brush decides whether it is solid.
public FuncBrush.SolidityMode Solidity { get; }Property Value
Methods
Spawn()
Sets up the entity: loads its model, reads class-specific keyvalues, and schedules its first think. Called by right after construction, before the entity enters the world.
public override void Spawn()
