UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

21 lines (20 loc) 809 B
/** * * @enum */ export const EntityFlags = { /** * Whether the entity is built, set internally */ Built: 1, /** * If component type is not registered on the {@link EntityComponentDataset} when calling {@link Entity#build} - will register the component first */ RegisterComponents: 2, /** * Entity builder will watch destruction of the entity (subscribe to event), this will make the {@link Entity} automatically * recognize when the corresponding entity is destroyed outside the {@link Entity} API * NOTE: useful to turn off to save a bit of memory, as those event listeners take up a bit of space. Feel free to turn this flag off when you don't care to keep the reference to the {@link Entity} */ WatchDestruction: 4 };