Beispiel #1
0
 def __init__(self, app, uuid, dna_suffix=None, mods=None, db_item_type=None, db_params=None, fqn="mg.mmorpg.inventory.ItemType"):
     Module.__init__(self, app, fqn)
     ParametrizedObject.__init__(self, "item-types")
     self.uuid = uuid
     self._dna_suffix = dna_suffix
     self.mods = mods
     if db_item_type:
         self._db_item_type = db_item_type
     if db_params:
         self._db_params = db_params
Beispiel #2
0
 def set_param(self, key, val):
     param = self.call("characters.param", key)
     if not param:
         return None
     res = ParametrizedObject.set_param(self, key, val)
     self.send_param(param, val)
     return res
Beispiel #3
0
 def set_param(self, key, val):
     param = self.call("characters.param", key)
     if not param:
         return None
     res = ParametrizedObject.set_param(self, key, val)
     self.send_param(param, val)
     return res
Beispiel #4
0
 def __init__(self,
              app,
              uuid,
              dna_suffix=None,
              mods=None,
              db_item_type=None,
              db_params=None,
              fqn="mg.mmorpg.inventory.ItemType"):
     Module.__init__(self, app, fqn)
     ParametrizedObject.__init__(self, "item-types")
     self.uuid = uuid
     self._dna_suffix = dna_suffix
     self.mods = mods
     if db_item_type:
         self._db_item_type = db_item_type
     if db_params:
         self._db_params = db_params
Beispiel #5
0
 def __init__(self, app, uuid, fqn="mg.constructor.players.Character"):
     Module.__init__(self, app, fqn)
     ParametrizedObject.__init__(self, "characters")
     self.uuid = uuid
Beispiel #6
0
 def __init__(self, app, uuid, fqn="mg.mmorpg.locations.Location"):
     Module.__init__(self, app, fqn)
     ParametrizedObject.__init__(self, "locations")
     self.uuid = uuid
Beispiel #7
0
 def __init__(self, app, uuid, fqn="mg.constructor.players.Character"):
     Module.__init__(self, app, fqn)
     ParametrizedObject.__init__(self, "characters")
     self.uuid = uuid