def initModelConstants(self): """ This method initialises all data which is considered to be constant for a ruleset lifetime. """ Model.create(self.model) for loader in self.modelLoaders: loader.initModelConstants()
def initModel(self): """ Initialise the database with anything needed for this game. The ruleset should do things like, - Create any components in the databases - Create any resources in the databases - etc This should not add anything to the players universe. Use the populate command for that. This command takes no arguments, so it should not do anything which needs information from the user. """ Model.create(self.model)