AutomationEvent methods added
This commit is contained in:
parent
60fd5d9eaf
commit
1a9973bd2a
2 changed files with 57 additions and 0 deletions
|
|
@ -1329,4 +1329,27 @@ public static unsafe partial class Raylib
|
|||
{
|
||||
return GetScreenToWorldRay(mousePosition, camera);
|
||||
}
|
||||
|
||||
/// <summary>Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS</summary>
|
||||
public static AutomationEventList LoadAutomationEventList(string fileName)
|
||||
{
|
||||
using var str1 = fileName.ToUtf8Buffer();
|
||||
return LoadAutomationEventList(str1.AsPointer());
|
||||
}
|
||||
|
||||
/// <summary>Export automation events list as text file</summary>
|
||||
public static CBool ExportAutomationEventList(AutomationEventList list, string fileName)
|
||||
{
|
||||
using var str1 = fileName.ToUtf8Buffer();
|
||||
return ExportAutomationEventList(list, str1.AsPointer());
|
||||
}
|
||||
|
||||
/// <summary>Set automation event list to record to</summary>
|
||||
public static void SetAutomationEventList(ref AutomationEventList list)
|
||||
{
|
||||
fixed (AutomationEventList* p = &list)
|
||||
{
|
||||
SetAutomationEventList(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue