Class RelationEngine
Adapts the Xareus relation engine to the Unity system.
Inheritance
RelationEngine
Assembly: Xareus.Relations.Unity.dll
Syntax
public class RelationEngine : MonoBehaviour, IRelationEngine
Fields
HideRealizationsInHierarchy
Hide realizations in the editor hierarchy
Declaration
public bool HideRealizationsInHierarchy
Field Value
Instance
Declaration
public static RelationEngine Instance
Field Value
RealizationCreationRate
Maximum number of realization to create each frame for each request. Only works if UseAutoSmoothRealizationCreation is disabled and a request with a callbkac has been made
Declaration
public int RealizationCreationRate
Field Value
UseAutoSmoothRealizationCreation
Creates realizations over multiple framesusing our algorithm
Declaration
public bool UseAutoSmoothRealizationCreation
Field Value
UseSmoothRealizationCreation
Creates realizations over multiple frames
Declaration
[Tooltip("Creation of realizations over multiple frames")]
public bool UseSmoothRealizationCreation
Field Value
Properties
Engine
The wrapper of the relation engine
Declaration
public IEngine Engine { get; }
Property Value
IsApplicationStopping
Property that tells if the application is stopping (useful for OnDestroy)
Declaration
public static bool IsApplicationStopping { get; }
Property Value
Ready
Declaration
public bool Ready { get; }
Property Value
RegisteredObjects
Declaration
public IEnumerable<IObject> RegisteredObjects { get; }
Property Value
RegisteredRelations
Declaration
public IEnumerable<IRelation> RegisteredRelations { get; }
Property Value
instance
Declaration
[Obsolete("Use Instance instead.")]
public static RelationEngine instance { get; }
Property Value
Methods
CreateXURealizationsFromRealizations(List<Realization>)
Creates the XURealizations corresponding to the given realizations and returns them
Declaration
public static List<XURealization> CreateXURealizationsFromRealizations(List<Realization> realizations)
Parameters
Type |
Name |
Description |
List<Realization> |
realizations |
The realizations to create
|
Returns
CreateXURealizationsFromRealizations(List<Realization>, Action<List<XURealization>>)
Declaration
public void CreateXURealizationsFromRealizations(List<Realization> realizationList, Action<List<XURealization>> resultCallback)
Parameters
GetObjects()
Declaration
[Obsolete("Use RegisteredObjects instead")]
public IEnumerable<IObject> GetObjects()
Returns
GetObjects(IEnumerable<ObjectQueryParameters>, Action<List<IObject>>, bool)
Declaration
public void GetObjects(IEnumerable<ObjectQueryParameters> queriesParameters, Action<List<IObject>> resultCallback, bool checkRegistered = true)
Parameters
GetObjects(IEnumerable<ObjectQueryParameters>, bool)
Declaration
public List<IObject> GetObjects(IEnumerable<ObjectQueryParameters> queriesParameters, bool checkRegistered = true)
Parameters
Returns
GetObjects(List<ObjectQueryWithCallback>, bool)
Declaration
public void GetObjects(List<ObjectQueryWithCallback> queriesParametersWithCallbacks, bool checkRegistered = true)
Parameters
GetObjects(ObjectQueryParameters, Action<List<IObject>>, bool)
Declaration
public void GetObjects(ObjectQueryParameters queryParameters, Action<List<IObject>> resultCallback, bool checkRegistered = true)
Parameters
GetObjects(ObjectQueryParameters, bool)
Declaration
public List<IObject> GetObjects(ObjectQueryParameters queryParameters, bool checkRegistered = true)
Parameters
Returns
GetRealizations(IEnumerable<RealizationQueryParameters>, Action<List<XURealization>>, bool)
Declaration
public void GetRealizations(IEnumerable<RealizationQueryParameters> queriesParameters, Action<List<XURealization>> resultCallback, bool checkRegistered = true)
Parameters
GetRealizations(IEnumerable<RealizationQueryParameters>, bool)
Declaration
public List<XURealization> GetRealizations(IEnumerable<RealizationQueryParameters> queriesParameters, bool checkRegistered = true)
Parameters
Returns
GetRealizations(List<RealizationQueryWithCallback>, bool)
Declaration
public void GetRealizations(List<RealizationQueryWithCallback> queriesParametersWithCallbacks, bool checkRegistered = true)
Parameters
GetRealizations(RealizationQueryParameters, Action<List<XURealization>>, bool)
Declaration
public void GetRealizations(RealizationQueryParameters queryParameters, Action<List<XURealization>> resultCallback, bool checkRegistered = true)
Parameters
GetRealizations(RealizationQueryParameters, bool)
Declaration
public List<XURealization> GetRealizations(RealizationQueryParameters queryParameters, bool checkRegistered = true)
Parameters
Returns
GetRelations()
Declaration
[Obsolete("Use RegisteredRelations instead")]
public IEnumerable<IRelation> GetRelations()
Returns
IsReady()
Declaration
[Obsolete("Use Ready instead.")]
public bool IsReady()
Returns
OnApplicationQuit()
Know when the application is stopping
Declaration
protected void OnApplicationQuit()
Implements