using System; using System.Runtime.InteropServices; namespace Raylib_cs; /// Automation event [StructLayout(LayoutKind.Sequential)] public unsafe struct AutomationEvent { /// Event frame public uint Frame; /// Event type (AutomationEventType) public uint Type; /// Event parameters (if required) public fixed int Params[4]; } /// Automation event list [StructLayout(LayoutKind.Sequential)] public unsafe struct AutomationEventList { /// Events max entries (MAX_AUTOMATION_EVENTS) public uint Capacity; /// Events entries count public uint Count; /// Events entries public AutomationEvent* Events; /// public ReadOnlySpan EventsAsSpan => new(Events, (int)Count); }