diff --git a/BattleBitAPI/Common/Conts.cs b/BattleBitAPI/Common/Conts.cs index 830b601..14dffab 100644 --- a/BattleBitAPI/Common/Conts.cs +++ b/BattleBitAPI/Common/Conts.cs @@ -2,7 +2,7 @@ { public static class Const { - public static string Version = "1.0.3v"; + public static string Version = "1.0.4v"; // ---- Networking ---- /// diff --git a/BattleBitAPI/Server/Internal/ServerSettings.cs b/BattleBitAPI/Server/Internal/ServerSettings.cs index ed889f2..7cadb7f 100644 --- a/BattleBitAPI/Server/Internal/ServerSettings.cs +++ b/BattleBitAPI/Server/Internal/ServerSettings.cs @@ -180,6 +180,18 @@ namespace BattleBitAPI.Server } } + public bool UnlockAllAttachments + { + get => mResources._RoomSettings.UnlockAllAttachments; + set + { + if (mResources._RoomSettings.UnlockAllAttachments == value) + return; + mResources._RoomSettings.UnlockAllAttachments = value; + mResources.IsDirtyRoomSettings = true; + } + } + // ---- Reset ---- public void Reset() { @@ -209,6 +221,8 @@ namespace BattleBitAPI.Server public float APCSpawnDelayMultipler = 1.0f; public float HelicopterSpawnDelayMultipler = 1.0f; + public bool UnlockAllAttachments = false; + public void Write(Common.Serialization.Stream ser) { ser.Write(this.DamageMultiplier); @@ -230,6 +244,8 @@ namespace BattleBitAPI.Server ser.Write(this.SeaVehicleSpawnDelayMultipler); ser.Write(this.APCSpawnDelayMultipler); ser.Write(this.HelicopterSpawnDelayMultipler); + + ser.Write(this.UnlockAllAttachments); } public void Read(Common.Serialization.Stream ser) { @@ -252,6 +268,8 @@ namespace BattleBitAPI.Server this.SeaVehicleSpawnDelayMultipler = ser.ReadFloat(); this.APCSpawnDelayMultipler = ser.ReadFloat(); this.HelicopterSpawnDelayMultipler = ser.ReadFloat(); + + this.UnlockAllAttachments = ser.ReadBool(); } public void Reset() { @@ -274,6 +292,8 @@ namespace BattleBitAPI.Server this.SeaVehicleSpawnDelayMultipler = 1.0f; this.APCSpawnDelayMultipler = 1.0f; this.HelicopterSpawnDelayMultipler = 1.0f; + + this.UnlockAllAttachments = false; } } } diff --git a/CommunityServerAPI.csproj b/CommunityServerAPI.csproj index a8b1d9e..0129f7e 100644 --- a/CommunityServerAPI.csproj +++ b/CommunityServerAPI.csproj @@ -18,7 +18,7 @@ https://github.com/MrOkiDoki/BattleBit-Community-Server-API https://github.com/MrOkiDoki/BattleBit-Community-Server-API BattleBit - 1.0.2.2 + 1.0.3