Add House Menu

This commit is contained in:
hydrant
2019-07-28 20:43:23 +02:00
parent f86bbe01c6
commit 5b9c08011e
12 changed files with 1686 additions and 12 deletions

View File

@@ -23,6 +23,10 @@ namespace ReallifeGamemode.Server.Entities
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);

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace ReallifeGamemode.Server.Entities
{
public class HouseRentals
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[ForeignKey("House")]
public int? HouseId { get; set; }
public House House { get; set; }
[ForeignKey("User")]
public int? UserId { get; set; }
public User User { get; set; }
}
}