forked from 3DRadSpace/3D_Rad_Space
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathInstIUpdateable.cs
More file actions
25 lines (19 loc) · 665 Bytes
/
Copy pathInstIUpdateable.cs
File metadata and controls
25 lines (19 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Runtime.InteropServices;
namespace Engine3DRadSpace;
public abstract class InstIUpdateable : NatPtrWrapper, IUpdateable
{
[DllImport("3DRadSpace.FFI.dll", EntryPoint = "E3DRSP_IUpdateable_Update")]
extern static void _update(IntPtr handle);
[DllImport("3DRadSpace.FFI.dll", EntryPoint = "E3DRSP_IUpdateable_Destroy")]
extern static void _destroy(IntPtr handle);
internal InstIUpdateable(IntPtr handle) : base(handle, _destroy)
{
}
protected InstIUpdateable(IntPtr handle, bool ownsHandle) : base(handle, ownsHandle ? _destroy : null)
{
}
public void Update()
{
_update(_handle);
}
}