• Creates and stores a new game room instance. Will fill instance components by calling each constructor with the game id.

    Parameters

    • options: GameOptions

      Room options including player count.

    • type: string

      Game type identifier.

    • components: ComponentConstructor[]

      Component constructors.

    • Optionaltimeout: number

      Optional empty-room timeout in milliseconds.

    Returns GameRoom

    The created game room with data and initialized components.