forked from 3DRadSpace/3D_Rad_Space
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMessage.cs
More file actions
22 lines (18 loc) · 511 Bytes
/
Copy pathMessage.cs
File metadata and controls
22 lines (18 loc) · 511 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System.Runtime.InteropServices;
namespace Engine3DRadSpace.Logging;
[StructLayout(LayoutKind.Sequential)]
public struct Message
{
[MarshalAs(UnmanagedType.LPStr)]
public string Details;
public int Code;
public IntPtr Extra;
public Message(string details, int code, IntPtr extra)
{
Details = details;
Code = code;
Extra = extra;
}
[DllImport("3DRadSpace.FFI.dll", CharSet = CharSet.Ansi, EntryPoint = "E3DRSP_PrintMessage")]
public extern static void PrintMessage(ref Message msg);
}