Refactor folder structure

This commit is contained in:
2026-02-18 00:50:46 +09:00
parent 426786397c
commit db8ca971a8
413 changed files with 2885 additions and 3634 deletions

View 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
};
}
}

View File

@@ -0,0 +1,9 @@
using Ghost.Entities;
using Misaki.HighPerformance.Mathematics;
namespace Ghost.Engine.Components;
public struct LocalToWorld : IComponent
{
public float4x4 matrix;
}

View 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;
}