cubeforge 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import React, { type CSSProperties } from 'react';
2
+ import { type Plugin } from '@cubeforge/core';
2
3
  export interface GameControls {
3
4
  pause(): void;
4
5
  resume(): void;
@@ -20,9 +21,11 @@ interface GameProps {
20
21
  scale?: 'none' | 'contain' | 'pixel';
21
22
  /** Called once the engine is ready — receives pause/resume/reset controls */
22
23
  onReady?: (controls: GameControls) => void;
24
+ /** Custom plugins to register after core systems. Each plugin's systems run after Render. */
25
+ plugins?: Plugin[];
23
26
  style?: CSSProperties;
24
27
  className?: string;
25
28
  children?: React.ReactNode;
26
29
  }
27
- export declare function Game({ width, height, gravity, debug, scale, onReady, style, className, children, }: GameProps): import("react/jsx-runtime").JSX.Element;
30
+ export declare function Game({ width, height, gravity, debug, scale, onReady, plugins, style, className, children, }: GameProps): import("react/jsx-runtime").JSX.Element;
28
31
  export {};
package/dist/index.d.ts CHANGED
@@ -29,7 +29,8 @@ export type { EngineState } from './context';
29
29
  export type { GameControls } from './components/Game';
30
30
  export type { PlatformerControllerOptions } from './hooks/usePlatformerController';
31
31
  export type { TopDownMovementOptions } from './hooks/useTopDownMovement';
32
- export type { EntityId, ECSWorld, ScriptUpdateFn } from '@cubeforge/core';
32
+ export type { EntityId, ECSWorld, ScriptUpdateFn, Plugin } from '@cubeforge/core';
33
+ export { definePlugin } from '@cubeforge/core';
33
34
  export type { InputManager } from '@cubeforge/input';
34
35
  export type { TransformComponent } from '@cubeforge/core';
35
36
  export type { RigidBodyComponent } from '@cubeforge/physics';