Struct EntityNameFixup ​
Namespace: ValveResourceFormat.Renderer.Entities
Assembly: Renderer.dll
What a spawn group puts in place of the markers its entities' names were compiled with: [PR#] becomes and &0000 becomes . A map and anything it loads by plain reference leave both empty, which simply drops the markers.
public readonly record struct EntityNameFixup : IEquatable<EntityNameFixup>Implements ​
Constructors ​
EntityNameFixup(string, string) ​
What a spawn group puts in place of the markers its entities' names were compiled with: [PR#] becomes and &0000 becomes . A map and anything it loads by plain reference leave both empty, which simply drops the markers.
public EntityNameFixup(string Parent, string Local)Parameters ​
Parent string
Replaces [PR#].
Local string
Replaces &0000.
Properties ​
Local ​
Replaces &0000.
public string Local { get; init; }Property Value ​
None ​
Gets the fixup that only drops the markers.
public static EntityNameFixup None { get; }Property Value ​
Parent ​
Replaces [PR#].
public string Parent { get; init; }Property Value ​
Methods ​
Apply(string) ​
Replaces the first of each marker in a name.
public string Apply(string name)Parameters ​
name string
Returns ​
Apply(Entity) ​
Gets the keyvalues with every top level string fixed up, or data itself when none holds a marker.
public EntityLump.Entity Apply(EntityLump.Entity data)Parameters ​
data EntityLump.Entity
Returns ​
Remarks ​
Nested values are left alone: the engine only fixes the strings inside them that are typed as entity names, a type the parsed keyvalues no longer carry.

