implement most of grids api methods
This commit is contained in:
@@ -5,6 +5,7 @@ using Sandbox.Engine.Networking;
|
||||
using Sandbox.Game;
|
||||
using Sandbox.Game.World;
|
||||
using TorchRemote.Models.Shared;
|
||||
|
||||
namespace TorchRemote.Plugin.Utils;
|
||||
|
||||
public static class Extensions
|
||||
@@ -26,4 +27,10 @@ public static class Extensions
|
||||
using var md5 = MD5.Create();
|
||||
return new(md5.ComputeHash(Encoding.UTF8.GetBytes(s)));
|
||||
}
|
||||
|
||||
public static Vector3 ToNumerics(this VRageMath.Vector3D vector3D) =>
|
||||
new((float)vector3D.X, (float)vector3D.Y, (float)vector3D.Z);
|
||||
|
||||
public static Vector3 ToNumerics(this VRageMath.Vector3 vector3) =>
|
||||
new(vector3.X, vector3.Y, vector3.Z);
|
||||
}
|
||||
|
Reference in New Issue
Block a user