pyrogue/g.py
2024-08-19 09:47:10 +02:00

40 lines
906 B
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.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."""
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_reder: tcod.render.SDLConsoleRender
"""The console renderer"""