improve house

This commit is contained in:
hydrant
2020-03-29 17:40:35 +02:00
parent 1871a97122
commit 0dc1235909
2 changed files with 4 additions and 13 deletions

View File

@@ -28,19 +28,10 @@ namespace ReallifeGamemode.Database.Entities
public DateTime LastRentSetTime { get; set; }
[NotMapped]
public Vector3 Position => new Vector3(X, Y, Z);
[NotMapped]
public Position NewPosition => new Position(X, Y, Z);
public Position Position => new Position(X, Y, Z);
[ForeignKey("Owner")]
public int? OwnerId { get; set; }
public User Owner { get; set; }
[NotMapped]
public Player User => Owner?.Player;
[NotMapped]
public IPlayer OwnerPlayer => new RagePlayer(User);
}
}