GameObjectPool
This commit is contained in:
24
src-csharp/GameObject.cs
Normal file
24
src-csharp/GameObject.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user