47 lines
1 KiB
Python
47 lines
1 KiB
Python
"""This module stores globally mutable variables used by this program."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import tcod.console
|
|
import tcod.context
|
|
import tcod.ecs
|
|
import tcod.sdl.video
|
|
import tcod.tileset
|
|
import tcod.sdl.render
|
|
import tcod.render
|
|
|
|
from game.screens import Screen
|
|
from game.components import Position
|
|
|
|
context: tcod.context.Context
|
|
"""The window managed by tcod."""
|
|
|
|
world: tcod.ecs.Registry
|
|
"""The active ECS registry and current session."""
|
|
|
|
screens: list[Screen] = []
|
|
"""A stack of states with the last item being the active state."""
|
|
|
|
console: tcod.console.Console
|
|
"""The current main console."""
|
|
|
|
foreground: tcod.console.Console
|
|
"""The foreground console"""
|
|
|
|
background: tcod.console.Console
|
|
"""The background console"""
|
|
|
|
tileset: tcod.tileset.Tileset
|
|
"""The tileset to use"""
|
|
|
|
sdl_window: tcod.sdl.video.Window
|
|
"""The SDL window"""
|
|
|
|
sdl_renderer: tcod.sdl.render.Renderer
|
|
"""The SDL renderer"""
|
|
|
|
atlas: tcod.render.SDLTilesetAtlas
|
|
"""The tileset atlas"""
|
|
|
|
console_render: tcod.render.SDLConsoleRender
|
|
"""The console renderer"""
|