示例#1
0
 def register_config_tab(name, **where):
     if name in TradersGame.ConfigTabs:
         raise Exception("Config tab " + name + " already exists!")
     TradersGame.Config.setdefault(name, [])
     list_inserter(TradersGame.ConfigTabs, name, **where)
示例#2
0
 def register_phase(phase, **where):
     if phase in TradersGame.Phases:
         raise Exception("Phase " + phase + " already exists!")
     list_inserter(TradersGame.Phases, phase, **where)