From 57aadb4eff08bdfb42cbfbb3c1cfe4d2db4e0dc4 Mon Sep 17 00:00:00 2001 From: jvyden Date: Wed, 6 Oct 2021 11:06:00 -0400 Subject: [PATCH] Add constructor to Location --- ProjectLighthouse/Types/Location.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ProjectLighthouse/Types/Location.cs b/ProjectLighthouse/Types/Location.cs index 78a7f6cf..fec7c8ce 100644 --- a/ProjectLighthouse/Types/Location.cs +++ b/ProjectLighthouse/Types/Location.cs @@ -2,12 +2,17 @@ using ProjectLighthouse.Serialization; namespace ProjectLighthouse.Types { public class Location { + public Location(int x, int y) { + this.X = x; + this.Y = y; + } + public int X; public int Y; public string Serialize() { return LbpSerializer.StringElement("x", this.X) + - LbpSerializer.StringElement("Y", this.Y); + LbpSerializer.StringElement("x", this.Y); } } } \ No newline at end of file