|
|
|
|
#ifndef DEFAULTS_H
|
|
#define DEFAULTS_H
|
|
|
|
#include "Configuration/ConfigStore.h"
|
|
|
|
//Generate a settings ConfigStore that can be changed by the user to configure some aspects of the library.
|
|
std::shared_ptr<ConfigStore> buildDefaultSettings() {
|
|
std::shared_ptr<ConfigStore> default_settings = std::make_shared<ConfigStore>();
|
|
|
|
//###############
|
|
//##Configuration Loading
|
|
|
|
//name of configuration file that declares details about the mod.
|
|
//Note: allows any supported extention
|
|
default_settings->set("mod config name", "config");
|
|
|
|
//############
|
|
//##Dependancy handling
|
|
|
|
//Variable to use as the id
|
|
default_settings->set("mod id key", "id");
|
|
|
|
//variable to check for required dependancies
|
|
default_settings->set("required dependancies key", "depends");
|
|
|
|
//variable to check for optional dependancies
|
|
default_settings->set("optional dependancies key", "opt depends");
|
|
|
|
//must be a single character
|
|
default_settings->set("list separator", ",");
|
|
|
|
return default_settings;
|
|
}
|
|
|
|
|
|
#endif
|