UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

51 lines (50 loc) 934 B
const SCRIPT_INITIALIZE = "initialize"; const SCRIPT_POST_INITIALIZE = "postInitialize"; const SCRIPT_UPDATE = "update"; const SCRIPT_POST_UPDATE = "postUpdate"; const SCRIPT_SWAP = "swap"; const reservedScriptNames = /* @__PURE__ */ new Set([ "system", "entity", "create", "destroy", "swap", "move", "data", "scripts", "_scripts", "_scriptsIndex", "_scriptsData", "enabled", "_oldState", "onEnable", "onDisable", "onPostStateChange", "_onSetEnabled", "_checkState", "_onBeforeRemove", "_onInitializeAttributes", "_onInitialize", "_onPostInitialize", "_onUpdate", "_onPostUpdate", "_callbacks", "_callbackActive", "has", "get", "on", "off", "fire", "once", "hasEvent", // 'worker' is reserved to prevent users from overwriting the native Worker constructor "worker" ]); export { SCRIPT_INITIALIZE, SCRIPT_POST_INITIALIZE, SCRIPT_POST_UPDATE, SCRIPT_SWAP, SCRIPT_UPDATE, reservedScriptNames };