better vectors

This commit is contained in:
Evil Factory
2021-08-01 11:14:25 -03:00
parent 193b1207f8
commit 49d162fb12
3 changed files with 24 additions and 4 deletions
@@ -10,6 +10,21 @@ namespace Barotrauma
{
partial class LuaSetup
{
private static Vector2 CreateVector2(float x, float y)
{
return new Vector2(x, y);
}
private static Vector3 CreateVector3(float x, float y, float z)
{
return new Vector3(x, y, z);
}
private static Vector4 CreateVector4(float x, float y, float z, float w)
{
return new Vector4(x, y, z, w);
}
private class LuaPlayer
{