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)
def register_phase(phase, **where): if phase in TradersGame.Phases: raise Exception("Phase " + phase + " already exists!") list_inserter(TradersGame.Phases, phase, **where)