Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

1.4 KB
Raw Blame
/**
 * @file    registryOps.generated.ts
 * @brief   The Registry entity ops and their native host globals.
 * @details Generated by EHT from tools/eht/registry_ops.py - DO NOT EDIT
 */

import type { Registry } from '../../wasm/wasm.generated';

export const REGISTRY_OPS = {
    create: 'es_registry_create',
    destroy: 'es_registry_destroy',
    valid: 'es_registry_valid',
    entityCount: 'es_registry_entityCount',
    reserveDestruction: 'es_registry_reserveDestruction',
    releaseDestruction: 'es_registry_releaseDestruction',
    destructionPending: 'es_registry_destructionPending',
    setEntityEnabled: 'es_registry_setEntityEnabled',
    isEntityActive: 'es_registry_isEntityActive',
    isEntityEnabled: 'es_registry_isEntityEnabled',
    hasInactiveEntities: 'es_registry_hasInactiveEntities',
    activityEpoch: 'es_registry_activityEpoch',
    markComponentChanged: 'es_registry_markComponentChanged',
    componentChangedSince: 'es_registry_componentChangedSince',
    changeTick: 'es_registry_changeTick',
    beginChangeRead: 'es_registry_beginChangeRead',
    setChangeAudit: 'es_registry_setChangeAudit',
    auditChanges: 'es_registry_auditChanges',
    changeAuditTotal: 'es_registry_changeAuditTotal',
    setParent: 'es_registry_setParent',
} as const satisfies { readonly [K in keyof Registry]?: string };

export type RegistryOp = keyof typeof REGISTRY_OPS;