11import { type Context } from "@nanoforge/common" ;
2- import { type ECSRegistry } from "@nanoforge/ecs" ;
2+ import { type Registry } from "@nanoforge/ecs" ;
33import { type InputLibrary } from "@nanoforge/input" ;
44import { type SoundLibrary } from "@nanoforge/sound" ;
55
@@ -14,7 +14,7 @@ import {
1414 Velocity ,
1515} from "./components" ;
1616
17- export function move ( registry : ECSRegistry ) {
17+ export function move ( registry : Registry ) {
1818 const entities = registry . getZipper ( [ Bounce , Position , Velocity ] ) ;
1919
2020 entities . forEach ( ( entity ) => {
@@ -23,7 +23,7 @@ export function move(registry: ECSRegistry) {
2323 } ) ;
2424}
2525
26- export function bounce ( registry : ECSRegistry , ctx : Context ) {
26+ export function bounce ( registry : Registry , ctx : Context ) {
2727 const entities = registry . getZipper ( [ Bounce , Position , Velocity ] ) ;
2828
2929 entities . forEach ( ( entity ) => {
@@ -39,7 +39,7 @@ export function bounce(registry: ECSRegistry, ctx: Context) {
3939 } ) ;
4040}
4141
42- export function controlPlayer ( registry : ECSRegistry , ctx : Context ) {
42+ export function controlPlayer ( registry : Registry , ctx : Context ) {
4343 const entities = registry . getZipper ( [ Controller , Position , Hitbox , Velocity ] ) ;
4444
4545 entities . forEach ( ( entity ) => {
@@ -62,7 +62,7 @@ export function controlPlayer(registry: ECSRegistry, ctx: Context) {
6262 } ) ;
6363}
6464
65- export function drawCircle ( registry : ECSRegistry ) {
65+ export function drawCircle ( registry : Registry ) {
6666 const entities = registry . getZipper ( [ CircleComponent , Position ] ) ;
6767
6868 entities . forEach ( ( entity ) => {
@@ -71,7 +71,7 @@ export function drawCircle(registry: ECSRegistry) {
7171 } ) ;
7272}
7373
74- export function moveRectangle ( registry : ECSRegistry ) {
74+ export function moveRectangle ( registry : Registry ) {
7575 const entities = registry . getZipper ( [ RectangleComponent , Position , Hitbox ] ) ;
7676
7777 entities . forEach ( ( entity ) => {
0 commit comments