feat: support wired movement packets and room sync

This commit is contained in:
Lorenzune
2026-03-22 16:48:51 +01:00
parent 427f7c66e9
commit 38a79d4f80
16 changed files with 2634 additions and 29 deletions
@@ -124,6 +124,7 @@ export class MovingObjectLogic extends RoomObjectLogicBase
if(!message || !this.object || !message.location) return;
this._changeTime = this._lastUpdateTime;
this.updateInterval = message.duration;
this._locationDelta.assign(message.targetLocation);
this._locationDelta.subtract(this._location);
@@ -67,7 +67,7 @@ export class FurniturePushableLogic extends FurnitureMultiStateLogic
return;
}
if(isMoveMessage && message.isSlide) this.updateInterval = MovingObjectLogic.DEFAULT_UPDATE_INTERVAL;
if(isMoveMessage && message.isSlide) this.updateInterval = message.duration;
super.processUpdateMessage(message);
}