warchron_app/src/warchron/constants.py

25 lines
514 B
Python
Raw Normal View History

2026-01-27 11:49:37 +01:00
from enum import StrEnum
from enum import Enum, auto
2026-01-27 11:49:37 +01:00
from PyQt6.QtCore import Qt
ROLE_TYPE = Qt.ItemDataRole.UserRole
ROLE_ID = Qt.ItemDataRole.UserRole + 1
class ItemType(StrEnum):
PLAYER = "player"
WAR = "war"
CAMPAIGN = "campaign"
ROUND = "round"
OBJECTIVE = "objective"
WAR_PARTICIPANT = "war_participant"
class RefreshScope(Enum):
NONE = auto()
PLAYERS_LIST = auto()
WARS_TREE = auto()
WAR_DETAILS = auto()
CAMPAIGN_DETAILS = auto()
ROUND_DETAILS = auto()