InstanceToEntityLookupComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct InstanceToEntityLookupComponent : IComponent

This is used when serializing save data. This keeps a reference between entities and their guid.

Implements: IComponent

⭐ Constructors

public InstanceToEntityLookupComponent()
public InstanceToEntityLookupComponent(IDictionary<TKey, TValue> instancesToEntities)

Parameters
instancesToEntities IDictionary<TKey, TValue>

⭐ Properties

EntitiesToInstances

public readonly ImmutableDictionary<TKey, TValue> EntitiesToInstances;

This keeps a map of the instances (guid) to their entities (id).

Returns
ImmutableDictionary<TKey, TValue>

InstancesToEntities

public readonly ImmutableDictionary<TKey, TValue> InstancesToEntities;

This keeps a map of the instances (guid) to their entities (id).

Returns
ImmutableDictionary<TKey, TValue>