Class PostQuerySystem
public class PostQuerySystem : WorldSubsystem
- Inheritance
-
PostQuerySystem
- Inherited Members
Constructors
PostQuerySystem()
public PostQuerySystem()
Fields
DefaultFramePerTick
Default tick frame: 2 fps
public const int DefaultFramePerTick = 25
Field Value
DefaultWorkerCount
Default parallel workers count: 5
public const int DefaultWorkerCount = 5
Field Value
Properties
FramePerTick
Set sysytem tick frame
public static int FramePerTick { get; set; }
Property Value
MaxWorkerCount
Set system parallel workers count
public static int MaxWorkerCount { get; set; }
Property Value
Methods
EnqueueCommand(PostQueryCommand)
Enqueue a new PostQueryCommand to the system
public void EnqueueCommand(PostQueryCommand command)
Parameters
commandPostQueryCommand
GetPosts(ActorHandle)
Get cached posts has found for target actor use latest command
public NativeArray<float3>.ReadOnly GetPosts(ActorHandle handle)
Parameters
handleActorHandle
Returns
- ReadOnly
Initialize()
Subsystem initialize phase, should bind callbacks and collect references in this phase
protected override void Initialize()
IsFree(ActorHandle)
Whether the worker for target actor is free to execute new command
public bool IsFree(ActorHandle handle)
Parameters
handleActorHandle
Returns
Release()
Subsystem release phase, should unbind callbacks and release references in this phase
protected override void Release()