MCPcopy Create free account
hub / github.com/esengine/esengine / process

Method process

packages/fairygui/src/ecs/FGUIUpdateSystem.ts:43–66  ·  view source on GitHub ↗
(entities: readonly Entity[])

Source from the content-addressed store, hash-verified

41 }
42
43 protected override process(entities: readonly Entity[]): void {
44 for (const entity of entities) {
45 const fguiComp = entity.getComponent(FGUIComponent) as FGUIComponent | null;
46 if (!fguiComp) continue;
47
48 // Skip if currently loading
49 if (fguiComp.isLoading || this._pendingLoads.has(fguiComp)) {
50 continue;
51 }
52
53 // Check if we need to reload
54 const tracked = this._trackedStates.get(fguiComp);
55 const needsReload = this._needsReload(fguiComp, tracked);
56
57 if (needsReload && fguiComp.packageGuid) {
58 this._loadComponent(fguiComp);
59 }
60 }
61
62 const renderSystem = getFGUIRenderSystem();
63 if (renderSystem) {
64 renderSystem.update(Time.deltaTime);
65 }
66 }
67
68 /**
69 * Check if component needs to reload

Callers

nothing calls this directly

Calls 7

_needsReloadMethod · 0.95
_loadComponentMethod · 0.95
getFGUIRenderSystemFunction · 0.90
hasMethod · 0.65
getMethod · 0.65
updateMethod · 0.65
getComponentMethod · 0.45

Tested by

no test coverage detected