Refactor folder structure
This commit is contained in:
24
src/Runtime/Ghost.Engine/Components/Hierarchy.cs
Normal file
24
src/Runtime/Ghost.Engine/Components/Hierarchy.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Ghost.Engine.Editor;
|
||||
using Ghost.Entities;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Ghost.Engine.Components;
|
||||
|
||||
[HideEditor]
|
||||
public struct Hierarchy : IComponent
|
||||
{
|
||||
public Entity parent;
|
||||
public Entity firstChild;
|
||||
public Entity nextSibling;
|
||||
|
||||
public static Hierarchy Root
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get => new()
|
||||
{
|
||||
parent = Entity.Invalid,
|
||||
firstChild = Entity.Invalid,
|
||||
nextSibling = Entity.Invalid
|
||||
};
|
||||
}
|
||||
}
|
||||
9
src/Runtime/Ghost.Engine/Components/LocalToWorld.cs
Normal file
9
src/Runtime/Ghost.Engine/Components/LocalToWorld.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Ghost.Entities;
|
||||
using Misaki.HighPerformance.Mathematics;
|
||||
|
||||
namespace Ghost.Engine.Components;
|
||||
|
||||
public struct LocalToWorld : IComponent
|
||||
{
|
||||
public float4x4 matrix;
|
||||
}
|
||||
9
src/Runtime/Ghost.Engine/Components/SceneID.cs
Normal file
9
src/Runtime/Ghost.Engine/Components/SceneID.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Ghost.Engine.Core;
|
||||
using Ghost.Entities;
|
||||
|
||||
namespace Ghost.Engine.Components;
|
||||
|
||||
public struct SceneID : IComponent // TODO: ISharedComponent
|
||||
{
|
||||
public Scene scene;
|
||||
}
|
||||
Reference in New Issue
Block a user