Struct EntityNameFixup ​
Namespace: ValveResourceFormat.Renderer.Entities
Assembly: Renderer.dll
Replacements a spawn group supplies for the markers compiled into entity names: [PR#] becomes EntityNameFixup.Parent and &0000 becomes EntityNameFixup.Local. A map and anything it loads by plain reference leave both empty, which drops the markers.
public readonly record struct EntityNameFixup : IEquatable<EntityNameFixup>Implements ​
Constructors ​
EntityNameFixup(string, string) ​
Replacements a spawn group supplies for the markers compiled into entity names: [PR#] becomes EntityNameFixup.Parent and &0000 becomes EntityNameFixup.Local. A map and anything it loads by plain reference leave both empty, which 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 ​
string
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 ​
string
Methods ​
Apply(string) ​
Replaces the first of each marker in a name.
public string Apply(string name)Parameters ​
name string
Returns ​
string
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: only their strings typed as entity names would be fixed, and parsed keyvalues no longer carry that type.

