-
Notifications
You must be signed in to change notification settings - Fork 5
/
utility.h
36 lines (30 loc) · 1.45 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
#ifndef UTILITY
#define UTILITY
using namespace std;
#include <string>
#include "PCH.h"
struct StatWeights
{
int healthWeight;
int staminaWeight;
int magickaWeight;
};
struct AttributePoints
{
int health;
int stamina;
int magicka;
};
bool IsPluginInstalled(const char* name);
RE::TESForm* GetFormFromIdentifier(const std::string& identifier);
std::string toLowerCase(std::string pString);
std::string trim(const std::string& str);
std::vector<std::string> splitRelationNumber(const std::string& input);
AttributePoints calculateAttributePoints(int level, const StatWeights& weights, int points);
RE::BIPED_MODEL::BipedObjectSlot getBipedObjectSlot(int slot);
void extractData(const std::string& line, const std::string& pattern, std::vector<std::string>& destination);
void extractMultiDataInt(const std::string& line, const std::string& pattern, std::vector<std::string>& pcMultFlag, std::vector<int>& pcMultFlag_min_values, std::vector<int>& pcMultFlag_max_values);
void extractMultiDataFloat(const std::string& line, const std::string& pattern, std::vector<std::string>& pcMultFlag, std::vector<float>& pcMultFlag_min_values, std::vector<float>& pcMultFlag_max_values);
void extractMultiDataString(const std::string& line, const std::string& pattern, std::vector<std::string>& pcMultFlag,
std::vector<std::string>& pcMultFlag_min_values, std::vector<std::string>& pcMultFlag_max_values);
#endif