Class EntityIOTargetResolver
Namespace: ValveResourceFormat.Utils
Assembly: ValveResourceFormat.dll
Resolves entity I/O connection targets to the entities they address: target names match case-insensitively, a target holding wildcards matches every name
accepts, and class name targetsaddress every entity of that class.
public sealed class EntityIOTargetResolverInheritance
object ← EntityIOTargetResolver
Constructors
EntityIOTargetResolver(IEnumerable<Entity>)
Indexes entities by target name and class name. Targets resolve only against this set, so it should hold every entity a connection could reach.
public EntityIOTargetResolver(IEnumerable<EntityLump.Entity> entities)Parameters
entities IEnumerable<EntityLump.Entity>
The entities connection targets are resolved against.
Methods
GetByTargetName(string?)
Gets the entities carrying targetName as their exact targetname, ignoring case. Empty when no entity has that name.
public IReadOnlyList<EntityLump.Entity> GetByTargetName(string? targetName)Parameters
targetName string?
The target name to look up.
Returns
IReadOnlyList<EntityLump.Entity>
The entities with that name.
Resolve(Connection, List<Entity>)
Resolves a connection's target, appending every matching entity to results.
public EntityIOTargetOutcome Resolve(EntityLump.Connection connection, List<EntityLump.Entity> results)Parameters
connection EntityLump.Connection
A connection of .
results List<EntityLump.Entity>
Receives the matching entities. Existing contents are kept.
Returns
Whether the target matched, and if not, why.
Resolve(string?, EntityIOTargetType, List<Entity>)
Resolves a connection target, appending every matching entity to results.
public EntityIOTargetOutcome Resolve(string? targetName, EntityIOTargetType targetType, List<EntityLump.Entity> results)Parameters
targetName string?
The connection's m_targetName.
targetType EntityIOTargetType
The connection's m_targetType.
results List<EntityLump.Entity>
Receives the matching entities. Existing contents are kept.
Returns
Whether the target matched, and if not, why.

