From 80593dcb2b34e91bbae2c8caf7e2734ea2044424 Mon Sep 17 00:00:00 2001 From: tulpenkiste Date: Mon, 22 May 2023 21:24:15 +0100 Subject: [PATCH] Rename `engine` to `core`, adjust rsdl source folder and change initial logger callback usage --- {engine => core}/dub.sdl | 2 +- {engine => core}/source/callback.d | 0 {engine => core}/source/core/engine.d | 2 +- {engine => core}/source/graphics/drawable.d | 0 {engine => core}/source/logging/types.d | 0 {engine => core}/source/math/types.d | 0 {engine => core}/source/node/node.d | 0 {engine => core}/source/renderer/renderer.d | 0 {engine => core}/source/resources/image.d | 0 {engine => core}/source/resources/resource.d | 0 renderer/rsdl/dub.sdl | 2 +- test/dub.sdl | 2 +- 12 files changed, 4 insertions(+), 4 deletions(-) rename {engine => core}/dub.sdl (81%) rename {engine => core}/source/callback.d (100%) rename {engine => core}/source/core/engine.d (95%) rename {engine => core}/source/graphics/drawable.d (100%) rename {engine => core}/source/logging/types.d (100%) rename {engine => core}/source/math/types.d (100%) rename {engine => core}/source/node/node.d (100%) rename {engine => core}/source/renderer/renderer.d (100%) rename {engine => core}/source/resources/image.d (100%) rename {engine => core}/source/resources/resource.d (100%) diff --git a/engine/dub.sdl b/core/dub.sdl similarity index 81% rename from engine/dub.sdl rename to core/dub.sdl index ca371b7..e59dc06 100644 --- a/engine/dub.sdl +++ b/core/dub.sdl @@ -1,4 +1,4 @@ -name "engine" +name "core" license "LGPL-3.0" targetType "library" targetName "hibiscore" \ No newline at end of file diff --git a/engine/source/callback.d b/core/source/callback.d similarity index 100% rename from engine/source/callback.d rename to core/source/callback.d diff --git a/engine/source/core/engine.d b/core/source/core/engine.d similarity index 95% rename from engine/source/core/engine.d rename to core/source/core/engine.d index cf8174d..7ce3104 100644 --- a/engine/source/core/engine.d +++ b/core/source/core/engine.d @@ -18,7 +18,7 @@ class Engine { previousPhysicsProcessTick = 0.00001f; watch.start(); - this.loggerCallback(LoggingSeverity.Information, "Started ge!"); + this.loggerCallback(LoggingSeverity.Information, "Started Hibis!"); } ~this() { diff --git a/engine/source/graphics/drawable.d b/core/source/graphics/drawable.d similarity index 100% rename from engine/source/graphics/drawable.d rename to core/source/graphics/drawable.d diff --git a/engine/source/logging/types.d b/core/source/logging/types.d similarity index 100% rename from engine/source/logging/types.d rename to core/source/logging/types.d diff --git a/engine/source/math/types.d b/core/source/math/types.d similarity index 100% rename from engine/source/math/types.d rename to core/source/math/types.d diff --git a/engine/source/node/node.d b/core/source/node/node.d similarity index 100% rename from engine/source/node/node.d rename to core/source/node/node.d diff --git a/engine/source/renderer/renderer.d b/core/source/renderer/renderer.d similarity index 100% rename from engine/source/renderer/renderer.d rename to core/source/renderer/renderer.d diff --git a/engine/source/resources/image.d b/core/source/resources/image.d similarity index 100% rename from engine/source/resources/image.d rename to core/source/resources/image.d diff --git a/engine/source/resources/resource.d b/core/source/resources/resource.d similarity index 100% rename from engine/source/resources/resource.d rename to core/source/resources/resource.d diff --git a/renderer/rsdl/dub.sdl b/renderer/rsdl/dub.sdl index 63517fc..8a07aa7 100644 --- a/renderer/rsdl/dub.sdl +++ b/renderer/rsdl/dub.sdl @@ -4,4 +4,4 @@ dependency "bindbc-sdl" version="~>1.3.5" targetType "library" targetName "hibis_rsdl" # Source paths so this can compile properly -sourcePaths "./" "../../engine" \ No newline at end of file +sourcePaths "./" "../../core" \ No newline at end of file diff --git a/test/dub.sdl b/test/dub.sdl index cf5c46a..8ab9ba4 100644 --- a/test/dub.sdl +++ b/test/dub.sdl @@ -7,4 +7,4 @@ targetType "executable" targetName "hibistest.exec" dependency "hibis:engine" version="*" dependency "hibis:rsdl" version="*" -sourcePaths "./" "../engine" "../renderer/rsdl" \ No newline at end of file +sourcePaths "./" "../core" "../renderer/rsdl" \ No newline at end of file