コード例 #1
0
ファイル: inventory_classes.py プロジェクト: CyrilSha/metagam
 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
コード例 #2
0
ファイル: player_classes.py プロジェクト: CyrilSha/metagam
 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
コード例 #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
コード例 #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
コード例 #5
0
ファイル: player_classes.py プロジェクト: CyrilSha/metagam
 def __init__(self, app, uuid, fqn="mg.constructor.players.Character"):
     Module.__init__(self, app, fqn)
     ParametrizedObject.__init__(self, "characters")
     self.uuid = uuid
コード例 #6
0
ファイル: locations_classes.py プロジェクト: xeddmc/metagam
 def __init__(self, app, uuid, fqn="mg.mmorpg.locations.Location"):
     Module.__init__(self, app, fqn)
     ParametrizedObject.__init__(self, "locations")
     self.uuid = uuid
コード例 #7
0
 def __init__(self, app, uuid, fqn="mg.constructor.players.Character"):
     Module.__init__(self, app, fqn)
     ParametrizedObject.__init__(self, "characters")
     self.uuid = uuid