Add constructor to Location

This commit is contained in:
jvyden 2021-10-06 11:06:00 -04:00
commit 57aadb4eff
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -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);
}
}
}