forked from Brabb3l/UtilityMod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtil.h
More file actions
23 lines (21 loc) · 1.06 KB
/
Util.h
File metadata and controls
23 lines (21 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "sdk/SDK.hpp"
class Util {
public:
static bool startsWith(const std::string& str, const std::string& start);
static bool is_number(const std::string& s);
static bool is_float(const std::string &in);
static void sendMessage(std::wstring msg);
static FVector AngleToDirectionalVector(double angle);
static void Normalize(FVector & vector);
static FVector Add(const FVector & vector, const FVector & addVector);
static FVector Subtract(const FVector & vector, const FVector & addVector);
static FVector Mutliply(const FVector & vector, const float & mult);
static FVector Lerp(const FVector & start, const FVector & end, const float & percent);
static FVector Floor(const FVector & vector);
static FVector Rotate(const FVector & vector, double angle);
static int GetKey(const std::string& key);
static FInventoryStack MakeItemStack(const std::string& itemname, const int& amount);
static bool DataCompare(PBYTE data, PBYTE signature, const char* szMask);
static PBYTE FindPattern(PBYTE start, DWORD size, PBYTE signature, const char* szMask);
};