haus system auf core geändert

This commit is contained in:
hydrant
2020-03-29 12:18:17 +02:00
parent 6bd3d4a3d0
commit bcfc2105ea
68 changed files with 1366 additions and 810 deletions

View File

@@ -35,6 +35,8 @@ namespace ReallifeGamemode.Server.Core.RageMP
}
}
public uint Dimension { get => entity.Dimension; set => entity.Dimension = value; }
public RageEntity(GTANetworkAPI.Entity rageEntity)
{
entity = rageEntity;
@@ -57,7 +59,9 @@ namespace ReallifeGamemode.Server.Core.RageMP
return fallback;
}
return (entity.GetSharedData<string>(key)).DeserializeJson<T>();
var data = entity.GetSharedData<string>(key);
return data.DeserializeJson<T>();
}
}
}