def create_world(self): """Creates the world used by this application""" self.world = RPGWorld(self) GameVariables.add_callback(self.update_game_variables) ScriptingSystem.register_command("set_global_lighting", self.set_global_lighting, _SCRIPTING_MODULE) ScriptingSystem.register_command("get_global_lighting", self.get_global_lighting, _SCRIPTING_MODULE) ScriptingSystem.register_command("is_location_in_region", self.is_location_in_region, _SCRIPTING_MODULE) ScriptingSystem.register_command("is_agent_in_region", self.is_agent_in_region, _SCRIPTING_MODULE)