mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-23 00:48:47 +00:00
Discard return value from native calls
This commit is contained in:
parent
bb1fda7f9f
commit
a91ac7d7fa
@ -1,4 +1,4 @@
|
|||||||
using VpSharp.Internal;
|
using VpSharp.Internal;
|
||||||
using VpSharp.Internal.NativeAttributes;
|
using VpSharp.Internal.NativeAttributes;
|
||||||
using static VpSharp.Internal.Native;
|
using static VpSharp.Internal.Native;
|
||||||
|
|
||||||
@ -54,10 +54,10 @@ public class VirtualParadiseModelObject : VirtualParadiseObject
|
|||||||
lock (Client.Lock)
|
lock (Client.Lock)
|
||||||
{
|
{
|
||||||
IntPtr handle = Client.NativeInstanceHandle;
|
IntPtr handle = Client.NativeInstanceHandle;
|
||||||
vp_int_set(handle, IntegerAttribute.ObjectId, Id);
|
_ = vp_int_set(handle, IntegerAttribute.ObjectId, Id);
|
||||||
builder.ApplyChanges();
|
builder.ApplyChanges();
|
||||||
|
|
||||||
vp_object_change(handle);
|
_ = vp_object_change(handle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ public abstract class VirtualParadiseObject : IEquatable<VirtualParadiseObject>
|
|||||||
{
|
{
|
||||||
lock (Client.Lock)
|
lock (Client.Lock)
|
||||||
{
|
{
|
||||||
vp_object_bump_begin(Client.NativeInstanceHandle, Id, session);
|
_ = vp_object_bump_begin(Client.NativeInstanceHandle, Id, session);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ValueTask.CompletedTask;
|
return ValueTask.CompletedTask;
|
||||||
@ -96,7 +96,7 @@ public abstract class VirtualParadiseObject : IEquatable<VirtualParadiseObject>
|
|||||||
{
|
{
|
||||||
lock (Client.Lock)
|
lock (Client.Lock)
|
||||||
{
|
{
|
||||||
vp_object_bump_end(Client.NativeInstanceHandle, Id, session);
|
_ = vp_object_bump_end(Client.NativeInstanceHandle, Id, session);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ValueTask.CompletedTask;
|
return ValueTask.CompletedTask;
|
||||||
@ -139,7 +139,7 @@ public abstract class VirtualParadiseObject : IEquatable<VirtualParadiseObject>
|
|||||||
int session = target?.Session ?? 0;
|
int session = target?.Session ?? 0;
|
||||||
(float x, float y, float z) = (Vector3) (position ?? Vector3d.Zero);
|
(float x, float y, float z) = (Vector3) (position ?? Vector3d.Zero);
|
||||||
|
|
||||||
vp_object_click(Client.NativeInstanceHandle, Id, session, x, y, z);
|
_ = vp_object_click(Client.NativeInstanceHandle, Id, session, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
|
Loading…
Reference in New Issue
Block a user