#include <st-misc.h>
|
| static RE::Setting * | GetGameSetting (const char *a_setting) |
| | Helper function to get Game settings by name.
|
| template<class T> |
| static void | ChangeGameSetting (RE::Setting *setting, const T &value) |
| | Helper template to easily set a game setting to a value.
|
| template<class T> |
| static void | SetGMST (const char *gmst, const T &value) |
| | Set a game setting (by name) to a specific value.
|
| static bool | IsModLoaded (const std::string_view &mod_name) |
| | Check if a mod is loaded by its full file name.
|
| static RE::TESObjectWEAP * | GetUnarmedWeapon () |
| | Get the unarmed weapon pointer.
|
| static void | RunConsoleCommandOnRef (RE::TESObjectREFR *a_target, const std::string_view a_command) |
| | Run console command on reference.
|
| static const char * | EntryPointToString (RE::BGSEntryPoint::ENTRY_POINT entryPoint) |
| | Get the entry point name.
|
| static const char * | WeaponTypeToString (const RE::WEAPON_TYPE a_type) |
| | Get the name of a weapon type.
|
| static const char * | AttackStateToString (RE::ATTACK_STATE_ENUM state) |
| | Get the name of a specified attack state.
|
◆ ChangeGameSetting()
template<class T>
| void StyyxUtil::MiscUtil::ChangeGameSetting |
( |
RE::Setting * | setting, |
|
|
const T & | value ) |
|
inlinestatic |
Helper template to easily set a game setting to a value.
- Template Parameters
-
| T | can be bool, int, float, uint, string |
- Parameters
-
| setting | The setting you want to change |
| value | The value you want to set the setting to |
◆ GetGameSetting()
| RE::Setting * StyyxUtil::MiscUtil::GetGameSetting |
( |
const char * | a_setting | ) |
|
|
inlinestatic |
Helper function to get Game settings by name.
- Parameters
-
| a_setting | Game setting name |
- Returns
- The setting related to the setting name
◆ GetUnarmedWeapon()
| RE::TESObjectWEAP * StyyxUtil::MiscUtil::GetUnarmedWeapon |
( |
| ) |
|
|
inlinestatic |
Get the unarmed weapon pointer.
- Returns
- The unarmed weapon the game uses
◆ IsModLoaded()
| bool StyyxUtil::MiscUtil::IsModLoaded |
( |
const std::string_view & | mod_name | ) |
|
|
inlinestatic |
Check if a mod is loaded by its full file name.
- Parameters
-
| mod_name | The full name of the mod including extension |
- Returns
- true if the mod is loaded
- Note
- Pass the full filename including extension, e.g. "Skyrim.esm" not "Skyrim".
Works with .esl, .esp and .esm
- Example
static bool IsModLoaded(const std::string_view &mod_name)
Check if a mod is loaded by its full file name.
Definition st-misc.h:94
◆ RunConsoleCommandOnRef()
| void StyyxUtil::MiscUtil::RunConsoleCommandOnRef |
( |
RE::TESObjectREFR * | a_target, |
|
|
const std::string_view | a_command ) |
|
inlinestatic |
Run console command on reference.
- Parameters
-
| a_target | The reference to run the command on |
| a_command | The command string |
◆ SetGMST()
template<class T>
| void StyyxUtil::MiscUtil::SetGMST |
( |
const char * | gmst, |
|
|
const T & | value ) |
|
inlinestatic |
Set a game setting (by name) to a specific value.
- Template Parameters
-
| T | can be bool, int, float, uint or string |
- Parameters
-
| gmst | Name of the game setting you want to change |
| value | Value to set the setting to |
- Example
static void SetGMST(const char *gmst, const T &value)
Set a game setting (by name) to a specific value.
Definition st-misc.h:81
The documentation for this struct was generated from the following file: