예제 #1
0
 def __init__(self, type_id, **kwargs):
     # TypeID of item this holder is supposed to wrap
     self._type_id = type_id
     # Special dictionary subclass that holds modified attributes
     # and data related to their calculation
     self.attributes = MutableAttributeMap(self)
     # Which fit this holder is bound to
     self.__fit = None
     # Which type this holder wraps. Use null source item by default,
     # as holder doesn't have fit with source yet
     self.item = NullSourceItem
     super().__init__(**kwargs)
예제 #2
0
파일: environment.py 프로젝트: Ebag333/eos
 def __init__(self, type_):
     self.__fit = None
     self.item = type_
     self.attributes = MutableAttributeMap(self)
     self.__state = State.offline