@vaguevoid/fiasco / ecs/systems / SystemOnce
Type Alias: SystemOnce
SystemOnce =
void
|number
Defined in: src/ecs/systems.ts:28
Used as the return type for any system function. Signifies that the system should only run once.
ts
import { SystemOnce } from '@vaguevoid/fiasco'
function system(): SystemOnce {
console.log("I only run once")
engine.spawn([...])
}