Class ReferenceTracker
Inheritance
System.Object
ReferenceTracker
Assembly: Eco.Gameplay.dll
Syntax
public static class ReferenceTracker : Object
Fields
ReferencedBy
Declaration
public static ThreadSafeDictionary<IHasID, List<IHasID>> ReferencedBy
Field Value
ReferencedByUpdated
Declaration
public static ThreadSafeAction<IHasID> ReferencedByUpdated
Field Value
References
Declaration
public static ThreadSafeDictionary<IHasID, List<IHasID>> References
Field Value
Methods
AddReference(IHasID, IHasID)
Declaration
public static void AddReference(IHasID source, IHasID target)
Parameters
ClearReferences(IHasID)
Declaration
public static void ClearReferences(IHasID source)
Parameters
Type |
Name |
Description |
IHasID |
source |
|
GetAllReferencedBy(IEnumerable<IHasID>)
Given a list of IDs, find all the things that could reference any of them which we track.
Declaration
public static HashSet<IHasID> GetAllReferencedBy(IEnumerable<IHasID> idSet)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IHasID> |
idSet |
|
Returns
Type |
Description |
System.Collections.Generic.HashSet<IHasID> |
|
GetReferencedBy(IHasID)
Declaration
public static IEnumerable<IHasID> GetReferencedBy(IHasID id)
Parameters
Type |
Name |
Description |
IHasID |
id |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IHasID> |
|