komodo/game

    Dark Mode
Search:
Group by:

Types

Game = ref object
  camera: Option[Camera]
  clearColor: Option[Color]
  componentStore: Table[ComponentId, Component]
  entityStore: Table[EntityId, Entity]
  isRunning: bool
  screenSize: Option[Vector2]
  shouldCloseAudio: bool
  systems: seq[System]
  title: string
  Source Edit
CommandKind {...}{.pure.} = enum
  Default, Close
  Source Edit

Funcs

func camera(self: Game): auto {...}{.inline, raises: [], tags: [].}
  Source Edit
func clearColor(self: Game): auto {...}{.inline, raises: [], tags: [].}
  Source Edit
func clearColor=(self: Game; value: Color) {...}{.inline, raises: [], tags: [].}
  Source Edit
func isRunning(self: Game): auto {...}{.inline, raises: [], tags: [].}
  Source Edit
func shouldCloseAudio(self: Game): auto {...}{.inline, raises: [], tags: [].}
  Source Edit
func shouldCloseAudio=(self: Game; value: bool) {...}{.inline, raises: [], tags: [].}
  Source Edit
func title(self: Game): auto {...}{.inline, raises: [], tags: [].}
  Source Edit
func title=(self: Game; value: string) {...}{.inline, raises: [], tags: [].}
  Source Edit
func screenSize(self: Game): auto {...}{.inline, raises: [], tags: [].}
  Source Edit
func newGame(title: string = DefaultTitle): Game {...}{.raises: [], tags: [].}
  Source Edit
func executeOnSystems(self: Game; predicate: proc (system: System)) {...}{.
    raises: [], tags: [].}
  Source Edit
func deregisterComponent(self: Game; component: Component): bool {...}{.
    raises: [KeyError], tags: [].}
  Source Edit
func deregisterEntity(self: Game; entity: Entity): bool {...}{.raises: [KeyError],
    tags: [].}
  Source Edit
func deregisterSystem(self: Game; system: System): bool {...}{.raises: [], tags: [].}
  Source Edit
func registerEntity(self: Game; entity: Entity): bool {...}{.raises: [KeyError],
    tags: [].}
  Source Edit
func registerComponent(self: Game; component: Component): bool {...}{.
    raises: [KeyError], tags: [].}
  Source Edit
func registerSystem(self: Game; system: System): bool {...}{.raises: [KeyError],
    tags: [].}
  Source Edit
func setClearColor(self: Game; clearColor: Color) {...}{.raises: [], tags: [].}
  Source Edit
func quit(self: Game) {...}{.raises: [], tags: [].}
  Source Edit
func run(self: Game) {...}{.raises: [], tags: [].}
  Source Edit
func run(self: Game; commandChannel: ptr Channel[CommandKind]) {...}{.
    raises: [ValueError], tags: [].}
  Source Edit