mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-31 09:18:38 +00:00
Add constructor to Location
This commit is contained in:
parent
cf37aa308b
commit
57aadb4eff
1 changed files with 6 additions and 1 deletions
|
@ -2,12 +2,17 @@ using ProjectLighthouse.Serialization;
|
||||||
|
|
||||||
namespace ProjectLighthouse.Types {
|
namespace ProjectLighthouse.Types {
|
||||||
public class Location {
|
public class Location {
|
||||||
|
public Location(int x, int y) {
|
||||||
|
this.X = x;
|
||||||
|
this.Y = y;
|
||||||
|
}
|
||||||
|
|
||||||
public int X;
|
public int X;
|
||||||
public int Y;
|
public int Y;
|
||||||
|
|
||||||
public string Serialize() {
|
public string Serialize() {
|
||||||
return LbpSerializer.StringElement("x", this.X) +
|
return LbpSerializer.StringElement("x", this.X) +
|
||||||
LbpSerializer.StringElement("Y", this.Y);
|
LbpSerializer.StringElement("x", this.Y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue