Changeset View
Changeset View
Standalone View
Standalone View
source/ps/Mod.h
Show All 32 Lines | namespace Mod | ||||
* Get the loaded mods and their version. | * Get the loaded mods and their version. | ||||
* "user" mod and "mod" mod are ignored as they are irrelevant for compatibility checks. | * "user" mod and "mod" mod are ignored as they are irrelevant for compatibility checks. | ||||
* | * | ||||
* @param scriptInterface the ScriptInterface in which to create the return data. | * @param scriptInterface the ScriptInterface in which to create the return data. | ||||
* @return list of loaded mods with the format [[modA, versionA], [modB, versionB], ...] | * @return list of loaded mods with the format [[modA, versionA], [modB, versionB], ...] | ||||
*/ | */ | ||||
JS::Value GetLoadedModsWithVersions(const ScriptInterface& scriptInterface); | JS::Value GetLoadedModsWithVersions(const ScriptInterface& scriptInterface); | ||||
void CacheEnabledModVersions(shared_ptr<ScriptRuntime> scriptRuntime); | |||||
/** | /** | ||||
* Gets info (version and mods loaded) on the running engine | * Gets info (version and mods loaded) on the running engine | ||||
* | * | ||||
* @param scriptInterface the ScriptInterface in which to create the return data. | * @param scriptInterface the ScriptInterface in which to create the return data. | ||||
* @return list of objects containing data | * @return list of objects containing data | ||||
*/ | */ | ||||
JS::Value GetEngineInfo(const ScriptInterface& scriptInterface); | JS::Value GetEngineInfo(const ScriptInterface& scriptInterface); | ||||
} | } | ||||
#endif // INCLUDED_MOD | #endif // INCLUDED_MOD |
Wildfire Games · Phabricator