mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-26 18:20:42 +00:00
49 lines
950 B
Python
49 lines
950 B
Python
from dataclasses import dataclass
|
|
from typing import ClassVar
|
|
|
|
from module.ocr.keyword import Keyword
|
|
|
|
|
|
@dataclass
|
|
class DungeonNav(Keyword):
|
|
instances: ClassVar = {}
|
|
|
|
|
|
@dataclass
|
|
class DungeonTab(Keyword):
|
|
instances: ClassVar = {}
|
|
|
|
|
|
@dataclass
|
|
class DungeonList(Keyword):
|
|
instances: ClassVar = {}
|
|
|
|
@property
|
|
def is_Calyx_Golden(self):
|
|
return 'Calyx_Golden' in self.name
|
|
|
|
@property
|
|
def is_Calyx_Crimson(self):
|
|
return 'Calyx_Crimson' in self.name
|
|
|
|
@property
|
|
def is_Stagnant_Shadow(self):
|
|
return 'Stagnant_Shadow' in self.name
|
|
|
|
@property
|
|
def is_Cavern_of_Corrosion(self):
|
|
return 'Cavern_of_Corrosion' in self.name
|
|
|
|
@property
|
|
def is_Echo_of_War(self):
|
|
return 'Echo_of_War' in self.name
|
|
|
|
@property
|
|
def is_Simulated_Universe(self):
|
|
return 'Simulated_Universe' in self.name
|
|
|
|
|
|
@dataclass
|
|
class DungeonEntrance(Keyword):
|
|
instances: ClassVar = {}
|