Skip to content
This repository was archived by the owner on Dec 3, 2021. It is now read-only.
This repository was archived by the owner on Dec 3, 2021. It is now read-only.

Room interface to improve readability of environment initialization code #20

@MaxInertia

Description

@MaxInertia

Creation of the room (static components of the scene) could be decoupled from the initialization of the scene by splitting it off into an instance of the Room interface. This will make it much easier to implement room selections by the user.

Environment could then have a method updateRoom for setting the displayed room.

def updateRoom(room: Room) {
  // If this.room is not null, remove it from the scene
  this.room = room
  // Add this.room to the scene
}

One possibility is that rooms could be dynamic, and they could be updated every frame via the same method, but with no arguments.

def updateRoom() = room.update()

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions