UNPKG

@devoplx/nodecraft-engine

Version:

NodeCraft Engine, a revolutionary game development framework tailored for Node.js and TypeScript, redefines the landscape by seamlessly managing player data, inventory, AI, and more. This advanced engine empowers developers to craft immersive gaming exper

23 lines (21 loc) 751 B
type callBack<T> = (...args: any[]) => void; type applicationStatus = 'errored' | 'running' | 'initializing' | 'inactive'; declare const createEngine: () => adaptiEngine; declare class adaptiEngine { status: applicationStatus; private events; private userEvents; private appEvents; customEvents: string[]; constructor(); init(): void; getEvents(filter?: string): string[] | { userEvents: string[]; appEvents: string[]; customEvents: string[]; } | undefined; on(eventName: string, callBack: callBack<any>): Promise<void>; emit<T>(eventName: string, data?: T, callBack?: callBack<void>): Promise<void>; private invokeCallbacks; } export { adaptiEngine, createEngine as default };