Trenchbroom parser work with entities

Fixed lighting
Fixed global position system
Fixed child deletion system.
editor work for custom entities registration
This commit is contained in:
Antoine Pilote
2021-06-23 17:37:54 -04:00
parent 1740a5707f
commit c7dc3cc476
35 changed files with 753 additions and 486 deletions

View File

@@ -18,32 +18,28 @@
int main()
{
std::string TrenchbroomPath = "F:/TrenchBroom/";
FGDFile file(TrenchbroomPath + "Games/Nuake/Nuake.fgd");
FGDClass newClass(FGDClassType::Point, "light", "a nuake light");
ClassProperty prop{
"Intensity",
ClassPropertyType::Integer,
"Changes the light intensity"
};
newClass.AddProperty(prop);
file.AddClass(newClass);
file.Save();
//std::string TrenchbroomPath = "F:/TrenchBroom/";
//
//FGDFile file(TrenchbroomPath + "Games/Nuake/Nuake.fgd");
//
//FGDClass newClass(FGDClassType::Point, "light", "a nuake light");
//
//ClassProperty prop{
// "Intensity",
// ClassPropertyType::Integer,
// "Changes the light intensity"
//};
//
//newClass.AddProperty(prop);
//file.AddClass(newClass);
//
//file.Save();
Engine::Init();
// ScriptingEngine::UpdateScript("test.lua");
EditorInterface editor;
editor.BuildFonts();
//CreateScene();
while (!Engine::GetCurrentWindow()->ShouldClose())
{
Engine::Tick();
@@ -56,8 +52,6 @@ int main()
editor.Draw();
Engine::EndDraw();
}
Engine::Close();