MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Execute

Method Execute

Source/Engine/AI/Behavior.cpp:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void BehaviorSystem::Execute(TaskGraph* graph)
47{
48 // Copy list of behaviors to update (in case one of them gets disabled during async jobs)
49 if (BehaviorServiceInstance.UpdateList.Count() == 0)
50 return;
51 Behaviors.Clear();
52 Behaviors.Add(BehaviorServiceInstance.UpdateList);
53
54 // Schedule work to update all behaviors in async
55 Function<void(int32)> job;
56 job.Bind<BehaviorSystem, &BehaviorSystem::Job>(this);
57 graph->DispatchJob(job, Behaviors.Count());
58}
59
60bool BehaviorService::Init()
61{

Callers 2

InvokeObjectRpcFunction · 0.45
OnUpdateMethod · 0.45

Calls 4

DispatchJobMethod · 0.80
CountMethod · 0.45
ClearMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected