From 4cffd6e4b216eedfc253d5cb0f75a74ab80c4e4d Mon Sep 17 00:00:00 2001 From: MrOkiDoki <0mrokidoki@gmail.com> Date: Thu, 31 Aug 2023 08:35:18 +0300 Subject: [PATCH 1/2] Version 1.0.7 --- BattleBitAPI/Common/Conts.cs | 2 +- BattleBitAPI/Server/Internal/ServerSettings.cs | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/BattleBitAPI/Common/Conts.cs b/BattleBitAPI/Common/Conts.cs index 8bed8fb..a967e85 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.6v"; + public static string Version = "1.0.7v"; // ---- Networking ---- /// diff --git a/BattleBitAPI/Server/Internal/ServerSettings.cs b/BattleBitAPI/Server/Internal/ServerSettings.cs index 32450d6..88e089d 100644 --- a/BattleBitAPI/Server/Internal/ServerSettings.cs +++ b/BattleBitAPI/Server/Internal/ServerSettings.cs @@ -213,6 +213,17 @@ namespace BattleBitAPI.Server mResources.IsDirtyRoomSettings = true; } } + public bool SquadRequiredToChangeRole + { + get => mResources._RoomSettings.SquadRequiredToChangeRole; + set + { + if (mResources._RoomSettings.SquadRequiredToChangeRole == value) + return; + mResources._RoomSettings.SquadRequiredToChangeRole = value; + mResources.IsDirtyRoomSettings = true; + } + } // ---- Reset ---- public void Reset() @@ -245,6 +256,7 @@ namespace BattleBitAPI.Server public bool UnlockAllAttachments = false; public bool TeamlessMode = false; + public bool SquadRequiredToChangeRole = true; public void Write(Common.Serialization.Stream ser) { @@ -270,6 +282,7 @@ namespace BattleBitAPI.Server ser.Write(this.UnlockAllAttachments); ser.Write(this.TeamlessMode); + ser.Write(this.SquadRequiredToChangeRole); } public void Read(Common.Serialization.Stream ser) { @@ -295,7 +308,7 @@ namespace BattleBitAPI.Server this.UnlockAllAttachments = ser.ReadBool(); this.TeamlessMode = ser.ReadBool(); - + this.SquadRequiredToChangeRole = ser.ReadBool(); } public void Reset() { @@ -321,6 +334,7 @@ namespace BattleBitAPI.Server this.UnlockAllAttachments = false; this.TeamlessMode = false; + this.SquadRequiredToChangeRole = true; } } } From 79f61a05c66db78e765b8b532324b16a90e5bd28 Mon Sep 17 00:00:00 2001 From: MrOkiDoki <0mrokidoki@gmail.com> Date: Thu, 31 Aug 2023 08:40:31 +0300 Subject: [PATCH 2/2] Server Version --- CommunityServerAPI.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommunityServerAPI.csproj b/CommunityServerAPI.csproj index 41229f9..ba9edc7 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.6 + 1.0.7