Compare commits

..

1 commit

Author SHA1 Message Date
Clown
d2ba37ddd5
Merge 96bed9bd7e into 6a8d991185 2025-04-30 13:41:53 +01:00

View file

@ -2403,9 +2403,9 @@ export type ComponentRecord = {
flags: number, flags: number,
size: number, size: number,
hooks: { hooks: {
on_add: (<T>(entity: Entity, id: Entity<T>, value: T) -> ())?, on_add: ((entity: Entity) -> ())?,
on_change: (<T>(entity: Entity, id: Entity<T>, value: T) -> ())?, on_set: ((entity: Entity, data: any) -> ())?,
on_remove: ((entity: Entity, id: Entity) -> ())?, on_remove: ((entity: Entity) -> ())?,
}, },
} }
export type ComponentIndex = Map<Id, ComponentRecord> export type ComponentIndex = Map<Id, ComponentRecord>