-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
554 additions
and
17 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "data/scripts/ninjatracing"] | ||
path = data/scripts/ninjatracing | ||
url = https://github.com/nico/ninjatracing.git | ||
[submodule "subprojects/flecs"] | ||
path = subprojects/flecs | ||
url = https://github.com/apache-hb/flecs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#pragma once | ||
|
||
#include "imgui.h" | ||
#include "imgui_internal.h" | ||
|
||
#include "flecs.h" | ||
|
||
struct MainMenu { flecs::entity entity; }; | ||
struct Window { }; | ||
struct Menu { }; | ||
struct MenuItem { }; | ||
struct MenuSection { }; | ||
|
||
struct Separator { }; | ||
|
||
struct Title { | ||
std::string title; | ||
const char *c_str() const { return title.c_str(); } | ||
}; | ||
|
||
struct ShortCut { | ||
ImGuiKeyChord chord; | ||
const char *c_str() const { return ImGui::GetKeyChordName(chord); } | ||
}; | ||
|
||
struct Children { | ||
flecs::query<> query; | ||
}; | ||
|
||
struct Priority { | ||
int value; | ||
|
||
friend constexpr int cmp(const Priority &lhs, const Priority &rhs) { | ||
return lhs.value - rhs.value; | ||
} | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
#pragma once | ||
|
||
#include "editor/panels/panel.hpp" | ||
|
||
namespace ed | ||
{ | ||
IEditorPanel *create_json_panel(); | ||
} |
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
Oops, something went wrong.