mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21: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_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
|
||||
s_EntityEditor = new ScriptClass("GlitchyEngine.Editor", "EntityEditor", s_CoreAssemblyImage, .Class);
|
||||
|
||||
@@ -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,3 +1,4 @@
|
||||
using GlitchyEngine.Components;
|
||||
using GlitchyEngine.Math;
|
||||
|
||||
namespace GlitchyEngine;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using GlitchyEngine.Components;
|
||||
using GlitchyEngine.Core;
|
||||
using GlitchyEngine.Math;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user