(entities: readonly Entity[])
| 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 |
nothing calls this directly
no test coverage detected