Show / Hide Table of Contents

Class ReferenceTracker

Inheritance
System.Object
ReferenceTracker
Namespace: Eco.Gameplay.Civics.Misc
Assembly: Eco.Gameplay.dll
Syntax
public static class ReferenceTracker : Object

Fields

ReferencedBy

Declaration
public static ThreadSafeDictionary<IHasID, List<IHasID>> ReferencedBy
Field Value
Type Description
ThreadSafeDictionary<IHasID, System.Collections.Generic.List<IHasID>>

ReferencedByUpdated

Declaration
public static ThreadSafeAction<IHasID> ReferencedByUpdated
Field Value
Type Description
ThreadSafeAction<IHasID>

References

Declaration
public static ThreadSafeDictionary<IHasID, List<IHasID>> References
Field Value
Type Description
ThreadSafeDictionary<IHasID, System.Collections.Generic.List<IHasID>>

Methods

AddReference(IHasID, IHasID)

Declaration
public static void AddReference(IHasID source, IHasID target)
Parameters
Type Name Description
IHasID source
IHasID target

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>
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾