add house position

This commit is contained in:
hydrant
2019-06-26 22:23:12 +02:00
parent 12803d03ad
commit dd647732c0
4 changed files with 1210 additions and 0 deletions

View File

@@ -19,6 +19,13 @@ namespace ReallifeGamemode.Server.Entities
public int Price { get; set; }
public float X { get; set; }
public float Y { get; set; }
public float Z { get; set; }
[NotMapped]
public Vector3 Position => new Vector3(X, Y, Z);
[ForeignKey("User")]
public int? UserId { get; set; }
public User User { get; set; }