VoxelEngine/src/logic/scripting/scripting_hud.hpp
2024-08-10 01:57:59 +03:00

29 lines
571 B
C++

#pragma once
#include <filesystem>
#include <string>
#include "typedefs.hpp"
namespace fs = std::filesystem;
class Hud;
namespace scripting {
extern Hud *hud;
void on_frontend_init(Hud *hud);
void on_frontend_render();
void on_frontend_close();
/**
* Load package-specific hud script
* @param env environment id
* @param packid content-pack id
* @param file script file path
*/
void load_hud_script(
const scriptenv &env, const std::string &packid, const fs::path &file
);
}