ScriptCore: Moved Component + Doc

This commit is contained in:
Simon Lübeß
2023-12-13 14:00:27 +01:00
parent 105ff57206
commit 4a2635a8c3
6 changed files with 16 additions and 3 deletions
+7 -1
View File
@@ -1,8 +1,14 @@
using GlitchyEngine.Core;
namespace GlitchyEngine;
namespace GlitchyEngine.Components;
/// <summary>
/// The base class for all Components.
/// </summary>
public abstract class Component : EngineObject
{
/// <summary>
/// Gets the entity that this component is attached to.
/// </summary>
public Entity Entity => new(_uuid);
}
+1
View File
@@ -1,3 +1,4 @@
using GlitchyEngine.Components;
using GlitchyEngine.Math;
namespace GlitchyEngine;
+1
View File
@@ -1,3 +1,4 @@
using GlitchyEngine.Components;
using GlitchyEngine.Core;
using GlitchyEngine.Math;
+1
View File
@@ -6,6 +6,7 @@ using System.Linq;
using System.Numerics;
using System.Reflection;
using System.Text;
using GlitchyEngine.Components;
using GlitchyEngine.Core;
using GlitchyEngine.Extensions;
using GlitchyEngine.Math;
+5 -1
View File
@@ -1,14 +1,18 @@
using System;
using System.Runtime.CompilerServices;
using GlitchyEngine.Components;
using GlitchyEngine.Core;
using GlitchyEngine.Extensions;
namespace GlitchyEngine;
/// <summary>
/// The base class for all entities and scripts in the current world.
/// </summary>
public class Entity : EngineObject
{
/// <summary>
/// Only used by the Engine. Don't use!
/// Don't call this constructor yourself.
/// </summary>
protected Entity()
{