-
Notifications
You must be signed in to change notification settings - Fork 5
/
utility.h
38 lines (28 loc) · 1.56 KB
/
utility.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef UTILITY
#define UTILITY
using namespace std;
#include <string>
#include "PCH.h"
#include "RE/Bethesda/TESForms.h"
bool IsPluginInstalled(const char* name);
std::string to_string(RE::BIPED_MODEL::BipedObjectSlot slot);
//template <typename T>
//T* getForm(std::string form);
void RemoveOModEntry(RE::BGSMod::Attachment::Mod::Data* a_modData, uint32_t property);
uint32_t getPropertyFromString(std::string text);
int findPositionInArray(RE::BSTArray<RE::TESForm*> pArray, RE::TESForm* form);
bool changeAVIF_NPC(RE::TESNPC* pNPC, RE::ActorValueInfo* pActorValueInfo, float pfValue);
bool changeAVIF_Race(RE::TESRace* pNPC, RE::ActorValueInfo* pActorValueInfo, float pfValue);
bool changeDamageType_Weapon(RE::TESObjectWEAP* object, RE::BGSDamageType* type, float pfValue);
bool changeDamageType_Armor(RE::TESObjectARMO* object, RE::BGSDamageType* type, float pfValue);
bool changeKeyword_TESLevItem(RE::TESLevItem* pNPC, RE::BGSKeyword* pActorValueInfo, float pfValue);
bool eraseDamageType_Weapon(RE::TESObjectWEAP* object, RE::BGSDamageType* type);
RE::EffectItem* createNewEffectItem(RE::EffectItem* item, RE::EffectSetting* setting, float magni, int dur, int area);
std::vector<std::string> splitRelationNumber(const std::string& input);
std::string trim(const std::string& str);
RE::BIPED_MODEL::BipedObjectSlot getBipedObjectSlot(int slot);
template <typename T>
T GetOffset(const void* baseObject, int offset);
RE::TESForm* GetFormFromIdentifier(const std::string& identifier);
std::string toLowerCase(std::string pString);
#endif