mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
ScriptCore: Moved Component + Doc
This commit is contained in:
@@ -631,7 +631,7 @@ static class ScriptEngine
|
|||||||
|
|
||||||
s_EngineObject = new ScriptClass("GlitchyEngine.Core", "EngineObject", s_CoreAssemblyImage, .Class);
|
s_EngineObject = new ScriptClass("GlitchyEngine.Core", "EngineObject", s_CoreAssemblyImage, .Class);
|
||||||
s_EntityRoot = new ScriptClass("GlitchyEngine", "Entity", s_CoreAssemblyImage, .Entity);
|
s_EntityRoot = new ScriptClass("GlitchyEngine", "Entity", s_CoreAssemblyImage, .Entity);
|
||||||
s_ComponentRoot = new ScriptClass("GlitchyEngine", "Component", s_CoreAssemblyImage, .Component);
|
s_ComponentRoot = new ScriptClass("GlitchyEngine.Components", "Component", s_CoreAssemblyImage, .Component);
|
||||||
|
|
||||||
// Editor classes
|
// Editor classes
|
||||||
s_EntityEditor = new ScriptClass("GlitchyEngine.Editor", "EntityEditor", s_CoreAssemblyImage, .Class);
|
s_EntityEditor = new ScriptClass("GlitchyEngine.Editor", "EntityEditor", s_CoreAssemblyImage, .Class);
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
using GlitchyEngine.Core;
|
using GlitchyEngine.Core;
|
||||||
|
|
||||||
namespace GlitchyEngine;
|
namespace GlitchyEngine.Components;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The base class for all Components.
|
||||||
|
/// </summary>
|
||||||
public abstract class Component : EngineObject
|
public abstract class Component : EngineObject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the entity that this component is attached to.
|
||||||
|
/// </summary>
|
||||||
public Entity Entity => new(_uuid);
|
public Entity Entity => new(_uuid);
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using GlitchyEngine.Components;
|
||||||
using GlitchyEngine.Math;
|
using GlitchyEngine.Math;
|
||||||
|
|
||||||
namespace GlitchyEngine;
|
namespace GlitchyEngine;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using GlitchyEngine.Components;
|
||||||
using GlitchyEngine.Core;
|
using GlitchyEngine.Core;
|
||||||
using GlitchyEngine.Math;
|
using GlitchyEngine.Math;
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ using System.Linq;
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using GlitchyEngine.Components;
|
||||||
using GlitchyEngine.Core;
|
using GlitchyEngine.Core;
|
||||||
using GlitchyEngine.Extensions;
|
using GlitchyEngine.Extensions;
|
||||||
using GlitchyEngine.Math;
|
using GlitchyEngine.Math;
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
using GlitchyEngine.Components;
|
||||||
using GlitchyEngine.Core;
|
using GlitchyEngine.Core;
|
||||||
using GlitchyEngine.Extensions;
|
using GlitchyEngine.Extensions;
|
||||||
|
|
||||||
namespace GlitchyEngine;
|
namespace GlitchyEngine;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The base class for all entities and scripts in the current world.
|
||||||
|
/// </summary>
|
||||||
public class Entity : EngineObject
|
public class Entity : EngineObject
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Only used by the Engine. Don't use!
|
/// Don't call this constructor yourself.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected Entity()
|
protected Entity()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user