Files
reallife-gamemode/ReallifeGamemode.Database/Entities/House.cs
Siga edf06f4478 RAGE Multiplayer 1.1.0-DP Update
/freeze was obselete and removed
/unfreeze was obselete and removed
/spectate was obselete and removed
2020-02-24 21:19:23 +01:00

36 lines
792 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using GTANetworkAPI;
namespace ReallifeGamemode.Database.Entities
{
public partial class House
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public string Type { get; set; }
public int Price { get; set; }
public float X { get; set; }
public float Y { get; set; }
public float Z { get; set; }
public int RentalFee { get; set; }
public bool CanRentIn { get; set; }
[NotMapped]
public Vector3 Position => new Vector3(X, Y, Z);
[ForeignKey("Owner")]
public int? OwnerId { get; set; }
public User Owner { get; set; }
[NotMapped]
public Player User => Owner?.Player;
}
}