pyrogue/g.py

26 lines
593 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 game.state
context: tcod.context.Context
"""The window managed by tcod."""
world: tcod.ecs.Registry
"""The active ECS registry and current session."""
world_map: tcod.map.Map
"""Wall Map of current World"""
world_center: tuple[int,int] = (50, 50)
states: list[game.state.State] = []
"""A stack of states with the last item being the active state."""
console: tcod.console.Console
"""The current main console."""