-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.h
More file actions
32 lines (31 loc) · 1.03 KB
/
utils.h
File metadata and controls
32 lines (31 loc) · 1.03 KB
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
#pragma once
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <nlohmann/json.hpp>
#include "rustplus.pb.h"
#include "rustsocket.h"
#include "main.h"
#include "resources.h"
#include "global.h"
namespace Utils
{
void ListenForInput();
std::vector<std::string> Filter(std::string str);
void Import();
inline bool FileExists(const std::string& name);
AppTeamInfo_Member GetLocalPlayer();
std::vector<std::string> GetServerlist();
SDL_Texture* CreateMap();
void CreateTemplateFile();
void LoadMarkersFromJson();
void SaveMarkersToJson(int x, int y);
SDL_Rect GetRect(int X, int Y, int mapsize, int mapwidth, bool relative, float w, float h);
std::pair<float, float> GetWorldPos(float X, float Y, float mapsize, float mapwidth, float zoom, float mx, float my);
bool CreateNametagTexture(const std::string& name, SDL_Renderer* renderer, std::map<std::string, Texture>& nametags, SDL_Color color);
}