This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool is_sandssim_file(std::string path) { | |
fs::path p(path); | |
if (fs::exists(path) && std::filesystem::is_regular_file(path) && p.extension().string() == ".sandssim") | |
return true; | |
return false; | |
} | |
int load(std::string path, char* write_name_to) { | |
std::ifstream file(path, std::ios::binary); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <raylib.h> | |
#define RAYGUI_IMPLEMENTATION | |
#include "../other libraries/raygui-master/src/raygui.h" | |
#include "../other libraries/RaylibGUI/RaylibGUI.h" | |
#include <iostream> | |
#include <fstream> | |
#include <nlohmann/json.hpp> | |
#include <random> | |
#include <cmath> | |
#include <thread> |