mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-07-02 19:13:43 -04:00
Update to raylib 5.5 (#279)
This commit is contained in:
35
Raylib-cs/types/Automation.cs
Normal file
35
Raylib-cs/types/Automation.cs
Normal file
@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Raylib_cs;
|
||||
|
||||
/// <summary>Automation event</summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe struct AutomationEvent
|
||||
{
|
||||
/// <summary>Event frame</summary>
|
||||
public uint Frame;
|
||||
|
||||
/// <summary>Event type (AutomationEventType)</summary>
|
||||
public uint Type;
|
||||
|
||||
/// <summary>Event parameters (if required)</summary>
|
||||
public fixed int Params[4];
|
||||
}
|
||||
|
||||
/// <summary>Automation event list</summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe struct AutomationEventList
|
||||
{
|
||||
/// <summary>Events max entries (MAX_AUTOMATION_EVENTS)</summary>
|
||||
public uint Capacity;
|
||||
|
||||
/// <summary>Events entries count</summary>
|
||||
public uint Count;
|
||||
|
||||
/// <summary>Events entries</summary>
|
||||
public AutomationEvent* Events;
|
||||
|
||||
/// <inheritdoc cref="Events"/>
|
||||
public ReadOnlySpan<AutomationEvent> EventsAsSpan => new(Events, (int)Count);
|
||||
}
|
Reference in New Issue
Block a user