ModEasy, a c++ library, is an easy to add modding system that is functional out of the box, but also designed to be extendable for whatever you may need.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

38 lines
1.0 KiB

#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