mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-04 19:29:18 +00:00
Compare commits
2 commits
bdda7a64a8
...
e0620b65e4
Author | SHA1 | Date | |
---|---|---|---|
|
e0620b65e4 | ||
|
48a43d4ff8 |
1 changed files with 3 additions and 3 deletions
|
@ -2403,9 +2403,9 @@ export type ComponentRecord = {
|
|||
flags: number,
|
||||
size: number,
|
||||
hooks: {
|
||||
on_add: ((entity: Entity) -> ())?,
|
||||
on_set: ((entity: Entity, data: any) -> ())?,
|
||||
on_remove: ((entity: Entity) -> ())?,
|
||||
on_add: (<T>(entity: Entity, id: Entity<T>, value: T) -> ())?,
|
||||
on_change: (<T>(entity: Entity, id: Entity<T>, value: T) -> ())?,
|
||||
on_remove: ((entity: Entity, id: Entity) -> ())?,
|
||||
},
|
||||
}
|
||||
export type ComponentIndex = Map<Id, ComponentRecord>
|
||||
|
|
Loading…
Reference in a new issue