Beispiel #1
0
 def dec_wrapper(func):
     action = make_action(func, msg_class=msg_class, **kwargs)
     for verb in convert_verbs(verbs):
         if verb in _mud_actions:
             error("Adding mud action for existing verb {}", verb)
         else:
             _mud_actions[verb] = action
Beispiel #2
0
 def on_loaded(self):
     if self.direction:
         self._dir = Direction.ref_map[self.direction]
         self.verbs = (self._dir.obj_id,), (self._dir.desc,)
         self.target_class = 'no_args'
     else:
         self._dir = None
         self.verbs = convert_verbs(self.verb)
         self.target_class = [target_gen.action]
     if not self.title and self.verb:
         self.title = self.verb
Beispiel #3
0
 def on_loaded(self):
     if not self.auto_start:
         self.verbs = convert_verbs(self.verb)