mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user