diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e6aa592 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# Xmake cache +.xmake/ +build/ + +# MacOS Cache +.DS_Store + +# Vscode configs +.vscode + +# Test +test \ No newline at end of file diff --git a/include/UCTGui.h b/include/UCTGui.h new file mode 100644 index 0000000..cfcfd73 --- /dev/null +++ b/include/UCTGui.h @@ -0,0 +1,10 @@ +#pragma once + +namespace uct { +namespace gui { + +void Init(); +void Render(); + +} // namespace gui +} // namespace uct diff --git a/include/UCTSave.h b/include/UCTSave.h new file mode 100644 index 0000000..128aabd --- /dev/null +++ b/include/UCTSave.h @@ -0,0 +1,36 @@ +#pragma once + +#include +#include +#include + +namespace uct { +namespace save { + +constexpr static std::size_t TEMPLATE_BUFFER_SIZE = 65536; +constexpr static std::size_t SLOT_BUFFER_SIZE = 1024; + +struct TemplateSlot { + std::string name; + std::string defaultValue; + char valueBuffer[SLOT_BUFFER_SIZE]; +}; + +struct Template { + std::string name; + char templateRaw[TEMPLATE_BUFFER_SIZE]; + std::vector templateSlots; +}; + +struct UCTSave { + std::vector