Fix missing database migration
This commit is contained in:
@@ -11,9 +11,17 @@ namespace ReallifeGamemode.Server.Managers
|
||||
public static List<DutyPoint> DutyPoints = new List<DutyPoint>();
|
||||
public static List<ColShape> DutyColShapes = new List<ColShape>();
|
||||
|
||||
public static List<WeaponPoint> WeaponPoints = new List<WeaponPoint>();
|
||||
public static List<ColShape> WeaponColShapes = new List<ColShape>();
|
||||
|
||||
public static List<JailReleasePoint> JailReleasePoints = new List<JailReleasePoint>();
|
||||
public static List<ColShape> JailReleaseColShapes = new List<ColShape>();
|
||||
|
||||
[ServerEvent(Event.ResourceStart)]
|
||||
public void OnResourceStart()
|
||||
{
|
||||
#region DutyPoints
|
||||
|
||||
DutyPoint dutyPointLSPD = new DutyPoint()
|
||||
{
|
||||
Position = new Vector3(458.24, -990.86, 30.68),
|
||||
@@ -28,6 +36,39 @@ namespace ReallifeGamemode.Server.Managers
|
||||
new Vector3(0, 0, 0), 3, new Color(255, 255, 255, 50), false, 0);
|
||||
NAPI.TextLabel.CreateTextLabel("Stempeluhr - Dr\u00fccke ~y~E\n~s~Dienstkleidung - Dr\u00fccke ~y~K", d.Position, 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
}
|
||||
#endregion
|
||||
#region WeaponPoints
|
||||
WeaponPoint weaponPointLSPD = new WeaponPoint()
|
||||
{
|
||||
Position = new Vector3(460.3162,-981.0168,30.68959),
|
||||
FactionId = 1
|
||||
};
|
||||
|
||||
WeaponPoints.Add(weaponPointLSPD);
|
||||
|
||||
foreach(WeaponPoint w in WeaponPoints)
|
||||
{
|
||||
NAPI.Marker.CreateMarker(1, new Vector3(w.Position.X, w.Position.Y, w.Position.Z - 2), new Vector3(w.Position.X, w.Position.Y, w.Position.Z + 1),
|
||||
new Vector3(0, 0, 0), 2, new Color(255, 255, 255, 50), false, 0);
|
||||
NAPI.TextLabel.CreateTextLabel("Waffenspind - Dr\u00fccke ~y~E", w.Position, 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
}
|
||||
#endregion
|
||||
#region JailReleasePoint
|
||||
JailReleasePoint jailPointLSPD = new JailReleasePoint()
|
||||
{
|
||||
Position = new Vector3(459.5327, -988.8435, 24.91487)
|
||||
};
|
||||
|
||||
JailReleasePoints.Add(jailPointLSPD);
|
||||
|
||||
foreach(JailReleasePoint j in JailReleasePoints)
|
||||
{
|
||||
NAPI.Marker.CreateMarker(1, new Vector3(j.Position.X, j.Position.Y, j.Position.Z - 2), new Vector3(j.Position.X, j.Position.Y, j.Position.Z + 1),
|
||||
new Vector3(0, 0, 0), 1.5f, new Color(255, 255, 255, 50), false, 0);
|
||||
NAPI.TextLabel.CreateTextLabel("Gefängnis PC - Dr\u00fccke ~y~E", j.Position, 7, 1, 0, new Color(255, 255, 255), false, 0);
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,5 +78,16 @@ namespace ReallifeGamemode.Server.Managers
|
||||
public int FactionId { get; set; }
|
||||
}
|
||||
|
||||
public class WeaponPoint
|
||||
{
|
||||
public Vector3 Position { get; set; }
|
||||
public int FactionId { get; set; }
|
||||
}
|
||||
|
||||
public class JailReleasePoint
|
||||
{
|
||||
public Vector3 Position { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user