This commit is contained in:
Naruse
2025-04-15 19:36:05 +08:00
parent dd51fb491d
commit ec8972d5d6
121 changed files with 30598 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
from abc import ABC, abstractmethod
from dataclasses import dataclass
from typing import TypeVar
T = TypeVar("T", bound="BaseResource")
@dataclass
class BaseResource(ABC):
def on_load(self: T) -> bool:
"""returns True by default if item loaded, otherwise will be skipped"""
return True
def check_floor_dir(self: T) -> bool:
"""returns True by default if floor dir exist, otherwise will be skipped"""
return True
@abstractmethod
def get_index(self) -> str:
pass