diff --git a/project/code/LGS/Extensions.cs b/project/code/LGS/Extensions.cs index b1df8d9..e4e7b83 100644 --- a/project/code/LGS/Extensions.cs +++ b/project/code/LGS/Extensions.cs @@ -9,4 +9,9 @@ public static class Extensions { return new Vector3(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle()); } + + public static Vector2 ReadVec2(this BinaryReader reader) + { + return new Vector2(reader.ReadSingle(), reader.ReadSingle()); + } }