diff --git a/src/nitro/room/RoomObjectEventHandler.ts b/src/nitro/room/RoomObjectEventHandler.ts index 58a20147..66a8b265 100644 --- a/src/nitro/room/RoomObjectEventHandler.ts +++ b/src/nitro/room/RoomObjectEventHandler.ts @@ -147,7 +147,7 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou } } - public _Str_20330(event: RoomSpriteMouseEvent, object: IRoomObject, geometry: IRoomGeometry): void + public processRoomCanvasMouseEvent(event: RoomSpriteMouseEvent, object: IRoomObject, geometry: IRoomGeometry): void { if(!event || !object) return; diff --git a/src/room/renderer/IRoomCanvasMouseListener.ts b/src/room/renderer/IRoomCanvasMouseListener.ts index e12f2002..ad32882a 100644 --- a/src/room/renderer/IRoomCanvasMouseListener.ts +++ b/src/room/renderer/IRoomCanvasMouseListener.ts @@ -4,5 +4,5 @@ import { IRoomGeometry } from '../utils/IRoomGeometry'; export interface IRoomCanvasMouseListener { - _Str_20330(event: RoomSpriteMouseEvent, object: IRoomObject, geometry: IRoomGeometry): void -} \ No newline at end of file + processRoomCanvasMouseEvent(event: RoomSpriteMouseEvent, object: IRoomObject, geometry: IRoomGeometry): void +} diff --git a/src/room/renderer/RoomSpriteCanvas.ts b/src/room/renderer/RoomSpriteCanvas.ts index e9b25172..5f03729e 100644 --- a/src/room/renderer/RoomSpriteCanvas.ts +++ b/src/room/renderer/RoomSpriteCanvas.ts @@ -961,7 +961,7 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas if(this._mouseListener) { - this._mouseListener._Str_20330(event, roomObject, this._geometry); + this._mouseListener.processRoomCanvasMouseEvent(event, roomObject, this._geometry); } else {