mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Moved Components to their respective namespaces
This commit is contained in:
@@ -631,7 +631,7 @@ static class ScriptEngine
|
||||
|
||||
s_EngineObject = new ScriptClass("GlitchyEngine.Core", "EngineObject", s_CoreAssemblyImage, .Class);
|
||||
s_EntityRoot = new ScriptClass("GlitchyEngine", "Entity", s_CoreAssemblyImage, .Entity);
|
||||
s_ComponentRoot = new ScriptClass("GlitchyEngine.Components", "Component", s_CoreAssemblyImage, .Component);
|
||||
s_ComponentRoot = new ScriptClass("GlitchyEngine.Core", "Component", s_CoreAssemblyImage, .Component);
|
||||
|
||||
// Editor classes
|
||||
s_EntityEditor = new ScriptClass("GlitchyEngine.Editor", "EntityEditor", s_CoreAssemblyImage, .Class);
|
||||
|
||||
@@ -64,8 +64,8 @@ static class ScriptGlue
|
||||
s_HasComponentMethods.Clear();
|
||||
s_RemoveComponentMethods.Clear();
|
||||
|
||||
RegisterComponent<TransformComponent>("GlitchyEngine.Transform");
|
||||
RegisterComponent<Rigidbody2DComponent>("GlitchyEngine.Rigidbody2D");
|
||||
RegisterComponent<TransformComponent>("GlitchyEngine.Core.Transform");
|
||||
RegisterComponent<Rigidbody2DComponent>("GlitchyEngine.Physics.Rigidbody2D");
|
||||
}
|
||||
|
||||
[RegisterMethod]
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using GlitchyEngine.Core;
|
||||
|
||||
namespace GlitchyEngine.Components;
|
||||
namespace GlitchyEngine.Core;
|
||||
|
||||
/// <summary>
|
||||
/// The base class for all Components.
|
||||
@@ -1,8 +1,6 @@
|
||||
using GlitchyEngine.Components;
|
||||
using GlitchyEngine.Core;
|
||||
using GlitchyEngine.Math;
|
||||
|
||||
namespace GlitchyEngine;
|
||||
namespace GlitchyEngine.Core;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the position, rotation and scale of an entity in the world.
|
||||
@@ -6,7 +6,6 @@ using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using GlitchyEngine.Components;
|
||||
using GlitchyEngine.Core;
|
||||
using GlitchyEngine.Extensions;
|
||||
using GlitchyEngine.Math;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using GlitchyEngine.Components;
|
||||
using GlitchyEngine.Core;
|
||||
using GlitchyEngine.Extensions;
|
||||
|
||||
@@ -250,7 +249,7 @@ public class Entity : EngineObject
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="GlitchyEngine.Transform"/> <see cref="Component"/> of this <see cref="Entity"/>.
|
||||
/// Gets the <see cref="Core.Transform"/> <see cref="Component"/> of this <see cref="Entity"/>.
|
||||
/// </summary>
|
||||
public Transform Transform => GetComponent<Transform>();
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using GlitchyEngine.Components;
|
||||
using GlitchyEngine.Core;
|
||||
|
||||
namespace GlitchyEngine.Physics;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using GlitchyEngine.Core;
|
||||
using GlitchyEngine.Math;
|
||||
|
||||
namespace GlitchyEngine.Components;
|
||||
namespace GlitchyEngine.Physics;
|
||||
|
||||
/// <summary>
|
||||
/// Rigid body component for 2D physics.
|
||||
Reference in New Issue
Block a user