useWorldDirectory
useWorldDirectory():
WorldDirectoryResult
The player’s worlds in this game, from the player app, and every verb on
them: a game draws its own worlds menu with them, in its own look. The app
confirms in its own sheet each verb that cannot be undone, opens a world to
more people, or acts on another person, and keeps every person to their
player id in the game. Outside the app, as under spawnite dev, a stand-in
answers with the development world. As Roblox’s private servers, kept by the
platform and read by the game.
const { directory, create, join } = useWorldDirectory();return directory?.mine.map((world) => ( <button key={world.id} onClick={() => void join({ worldId: world.id })}> {world.name} </button>));