Initial commit

This commit is contained in:
Naruse
2024-11-07 23:25:15 +08:00
commit e8e5f3a1a7
246 changed files with 27356 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
from typing import Type, Dict
resource_registry: Dict[Type, Dict[str, any]] = {}
class LoadPriority:
HIGH = 1
NORMAL = 2
LOW = 3
def GameResource(path: str, load_priority=LoadPriority.NORMAL):
def decorator(cls):
resource_registry[cls] = {"path": path, "load_priority": load_priority}
return cls
return decorator