|
@@ -5,18 +5,26 @@
|
|
|
#include <imgui.h>
|
|
#include <imgui.h>
|
|
|
#include <imgui_internal.h>
|
|
#include <imgui_internal.h>
|
|
|
|
|
|
|
|
|
|
+#include "server/server.hpp"
|
|
|
|
|
+
|
|
|
namespace saura {
|
|
namespace saura {
|
|
|
struct SandboxApp : AppBase {
|
|
struct SandboxApp : AppBase {
|
|
|
- void start() override { spdlog::info("Sandbox start!"); }
|
|
|
|
|
|
|
+ std::shared_ptr<ServerAPI> server_api_ctx;
|
|
|
|
|
+
|
|
|
|
|
+ void start() override {
|
|
|
|
|
+ spdlog::info("Sandbox start!");
|
|
|
|
|
+
|
|
|
|
|
+ server_api_ctx = std::make_shared<ServerAPI>();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
void update(double dt) override {
|
|
void update(double dt) override {
|
|
|
- ImGui::SetNextWindowPos({0.0f, 0.0f});
|
|
|
|
|
- ImGui::SetNextWindowSize(ImGui::GetIO().DisplaySize);
|
|
|
|
|
- ImGui::Begin("Demo", 0, ImGuiWindowFlags_NoDecoration);
|
|
|
|
|
|
|
+ ImGui::SetNextWindowPos({0.0f, 0.0f});
|
|
|
|
|
+ ImGui::SetNextWindowSize(ImGui::GetIO().DisplaySize);
|
|
|
|
|
+ ImGui::Begin("Demo", 0, ImGuiWindowFlags_NoDecoration);
|
|
|
|
|
|
|
|
- ImGui::Text("%s", this->get_title().c_str());
|
|
|
|
|
|
|
+ ImGui::Text("%s", this->get_title().c_str());
|
|
|
|
|
|
|
|
- ImGui::End();
|
|
|
|
|
|
|
+ ImGui::End();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void stop() override { spdlog::info("Sandbox stop!"); }
|
|
void stop() override { spdlog::info("Sandbox stop!"); }
|