mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-30 16:58: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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue