[chuni] Improve GetGameMapAreaConditionApi

This commit is contained in:
2024-06-23 00:08:53 +07:00
parent b89dbb89cc
commit 6f7f08d019
2 changed files with 247 additions and 164 deletions

View File

@ -1,3 +1,6 @@
from enum import Enum
class ChuniConstants:
GAME_CODE = "SDBT"
GAME_CODE_NEW = "SDHD"
@ -42,4 +45,16 @@ class ChuniConstants:
@classmethod
def game_ver_to_string(cls, ver: int):
return cls.VERSION_NAMES[ver]
return cls.VERSION_NAMES[ver]
class MapAreaConditionType(Enum):
UNLOCKED = 0
MAP_CLEARED = 1
MAP_AREA_CLEARED = 2
TROPHY_OBTAINED = 3
class MapAreaConditionLogicalOperator(Enum):
AND = 1
OR = 2