improve house
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user