Interface IEntityToolVisuals ​
Namespace: ValveResourceFormat.Renderer.Entities
Assembly: Renderer.dll
Tool-only visuals for entities: a stand-in for an entity with nothing of its own to draw, nodes relating entities to each other, and the collision of the world and its entities. The renderer only draws what the game draws and leaves these to whoever sets EntitySystem.ToolVisuals.
public interface IEntityToolVisualsMethods ​
AddEntityRelations(Scene, IReadOnlyList<BaseEntity>) ​
Adds nodes relating the entities a world spawned into a scene, once all of them have spawned.
void AddEntityRelations(Scene scene, IReadOnlyList<BaseEntity> entities)Parameters ​
scene Scene
The scene they spawned into.
entities IReadOnlyList<BaseEntity>
The spawned entities.
CreateCollisionVisuals(Scene, PhysAggregateData, string, BaseEntity?) ​
Builds nodes showing a collision, which the game does not draw, such as the tools materials it was built from. The nodes are not added to the scene, and are in the space of the collision.
IEnumerable<SceneNode> CreateCollisionVisuals(Scene scene, PhysAggregateData physics, string name, BaseEntity? entity)Parameters ​
scene Scene
The scene the nodes are for.
physics PhysAggregateData
The collision.
name string
The name of the nodes.
entity BaseEntity?
The entity the collision belongs to, or null for the collision of the world.
Returns ​
The nodes.
CreateStandIn(BaseEntity, ObjectTypeFlags) ​
Builds the stand-in drawn for an entity that has nothing of its own to draw. It is not added to the scene: the entity owns and places it.
SceneNode? CreateStandIn(BaseEntity entity, ObjectTypeFlags flags)Parameters ​
entity BaseEntity
The entity.
flags ObjectTypeFlags
Flags for the node.
Returns ​
The node, or null to draw nothing.
GetResourcesToPreload(string) ​
Gets the resources the stand-in for an entity of a class loads, so a world can load them alongside its own.
IEnumerable<string> GetResourcesToPreload(string classname)Parameters ​
classname string
The entity classname.
Returns ​
IEnumerable<string>
The resource names.

