Пример #1
0
 def __init__(self, typeId, state):
     # TypeID of item this holder is supposed to wrap
     self.__typeId = typeId
     # Keeps current state of the holder
     self.__state = state
     # 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
     self.__type = None
Пример #2
0
 def __init__(self, type_):
     self.__fit = None
     self.item = type_
     self.attributes = MutableAttributeMap(self)
     self.__state = State.offline