mirror of
https://github.com/Ukendio/jecs.git
synced 2025-06-20 00:09:18 +00:00
Update outwards facing types
Some checks are pending
Some checks are pending
This commit is contained in:
parent
6a8d991185
commit
48a43d4ff8
1 changed files with 3 additions and 3 deletions
|
@ -2403,9 +2403,9 @@ export type ComponentRecord = {
|
||||||
flags: number,
|
flags: number,
|
||||||
size: number,
|
size: number,
|
||||||
hooks: {
|
hooks: {
|
||||||
on_add: ((entity: Entity) -> ())?,
|
on_add: (<T>(entity: Entity, id: Entity<T>, value: T) -> ())?,
|
||||||
on_set: ((entity: Entity, data: any) -> ())?,
|
on_change: (<T>(entity: Entity, id: Entity<T>, value: T) -> ())?,
|
||||||
on_remove: ((entity: Entity) -> ())?,
|
on_remove: ((entity: Entity, id: Entity) -> ())?,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
export type ComponentIndex = Map<Id, ComponentRecord>
|
export type ComponentIndex = Map<Id, ComponentRecord>
|
||||||
|
|
Loading…
Reference in a new issue