CheatMenuSA/CheatMenu/Game.h

70 lines
2.0 KiB
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
class Game
{
public:
2021-06-17 09:00:32 -04:00
inline static SearchData mission_data{ "mission" };
2021-03-02 14:18:37 -05:00
inline static std::vector<std::string> day_names = { "Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday" };
2020-12-02 16:19:16 -05:00
2021-03-02 14:18:37 -05:00
inline static char save_game_name[22] = "";
2020-12-02 16:19:16 -05:00
struct random_cheats
{
2021-03-02 14:18:37 -05:00
inline static bool enable = false;
inline static int enable_wait_time = 10;
inline static CJson name_json = CJson("cheat name");
inline static uint timer = 0;
inline static std::string enabled_cheats[92][2];
2020-12-02 16:19:16 -05:00
};
2021-01-19 05:02:33 -05:00
struct freecam
2020-12-02 16:19:16 -05:00
{
2021-03-02 14:18:37 -05:00
inline static bool enable = false;
inline static float speed = 0.08f;
inline static float fov = -1;
inline static bool init_done = false;
inline static CPed* ped = nullptr;
inline static int hped = -1;
inline static float mouseX = 0.0f;
inline static float mouseY = 0.0f;
inline static float tmouseX = 0.0f;
inline static float tmouseY = 0.0f;
2020-12-02 16:19:16 -05:00
};
2021-02-02 02:59:01 -05:00
struct hard_mode
{
2021-03-02 14:18:37 -05:00
inline static bool state = false;
inline static float prev_health = 0.0f;
inline static float prev_max_health = 0.0f;
inline static float prev_armour = 0.0f;
inline static float prev_stamina = 0.0f;
2021-02-02 02:59:01 -05:00
};
2021-03-02 14:18:37 -05:00
inline static bool disable_cheats = false;
inline static bool disable_replay = false;
inline static bool forbidden_area_wl = true;
inline static bool freeze_mission_timer = false;
inline static bool freeze_time = false;
inline static bool keep_stuff = false;
inline static bool solid_water = false;
inline static bool ss_shortcut = false;
inline static bool sync_time = false;
inline static uint sync_time_timer = 0;
inline static uint solid_water_object = 0;
inline static bool mission_warning_shown = false;
2020-12-02 16:19:16 -05:00
struct stat
{
2021-03-02 14:18:37 -05:00
inline static CJson json = CJson("stat");
inline static ImGuiTextFilter filter = "";
inline static std::vector<std::string> search_categories;
inline static std::string selected_item = "All";
2020-12-02 16:19:16 -05:00
};
Game();
2021-02-24 16:54:45 -05:00
static void Draw();
2021-01-19 05:02:33 -05:00
static void FreeCam();
static void ClearFreecamStuff();
2021-03-02 14:18:37 -05:00
static void RealTimeClock();
2020-12-02 16:19:16 -05:00
};