22 lines
377 B
Python
22 lines
377 B
Python
|
|
from .base import Base
|
|
|
|
|
|
class System(Base):
|
|
x:int = 0
|
|
y:int = 0
|
|
type:str = 'unknown'
|
|
|
|
def update(self, d):
|
|
self.seta('x', d)
|
|
self.seta('y', d)
|
|
self.seta('type', d)
|
|
|
|
@classmethod
|
|
def ext(self):
|
|
return 'stm'
|
|
|
|
def path(self):
|
|
sector, symbol = self.symbol.split('-')
|
|
return f'atlas/{sector}/{symbol[0:1]}/{self.symbol}.{self.ext()}'
|