Added door locked state sync

This commit is contained in:
hydrant
2018-12-26 12:19:49 +01:00
parent 882391265a
commit 0d2eb11390
3 changed files with 47 additions and 11 deletions

View File

@@ -1,8 +1,8 @@
using System;
using GTANetworkAPI;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Numerics;
using System.Text;
/**
@@ -25,7 +25,10 @@ namespace reallife_gamemode.Server.Entities
public float Y { get; set; }
public float Z { get; set; }
public float Radius { get; set; }
[NotMapped]
public Vector3 Position => new Vector3(X, Y, Z);
[ForeignKey("FactionId")]
public int? FactionId { get; set; }
public Faction Faction { get; set; }