Skip to content

Commit

Permalink
fix signature
Browse files Browse the repository at this point in the history
  • Loading branch information
mflerackers committed Nov 30, 2024
1 parent 46054b4 commit c0890bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/events/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ export const onDestroy = overload2((action: (obj: GameObj) => void) => {
return on("destroy", tag, action);
});

export const onUse = overload2((action: (obj: GameObj) => void) => {
export const onUse = overload2((action: (obj: GameObj, id: string) => void) => {
return _k.game.events.on("use", action);
}, (tag: Tag, action: (obj: GameObj) => void) => {
return on("use", tag, action);
});

export const onUnuse = overload2((action: (obj: GameObj) => void) => {
export const onUnuse = overload2((action: (obj: GameObj, id: string) => void) => {
return _k.game.events.on("unuse", action);
}, (tag: Tag, action: (obj: GameObj) => void) => {
return on("unuse", tag, action);
Expand Down

0 comments on commit c0890bb

Please sign in to comment.