GameObjectPool

This commit is contained in:
2024-09-13 22:58:31 +05:00
parent bff2182ff0
commit 3df4361779
12 changed files with 306 additions and 20 deletions

24
src-csharp/GameObject.cs Normal file
View File

@@ -0,0 +1,24 @@
using System.Management.Instrumentation;
using System.Numerics;
using System.Runtime.InteropServices;
namespace Ougge;
[StructLayout(LayoutKind.Sequential)]
public struct Transform
{
Vector2 scale;
Vector2 position;
float rotation;
}
public class Component
{
GameObject owner;
}
public class GameObject
{
Transform transform { get; }
GameObject? parent;
}