24 lines
383 B
C#
24 lines
383 B
C#
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;
|
|
} |