#785·colyseus

[Feature]: Traveling between rooms

Author: mrsalehCreated Oct 21, 2024Updated Mar 6, 2025
Labels:rocket: feature

Context & Description

There is a feature in Unreal Engine networking , that developer can move all players from one room to another. We call it traveling. Right now we handle this by using states which is not a good practice , this is more like having enum for states while we can use State design pattern.

Use cases

This is useful when we have a room for match making , and customization and then we want everyone to join to the game room.

Proposed API

We can add these functions to the room

this.travelTo(otherRoomName);
this.travelPlayerTo(thePlayer,otherRoomName);