Merge pull request #81 from MrOkiDoki/develop

Develop
This commit is contained in:
MrOkiDoki 2023-08-30 22:40:58 -07:00 committed by GitHub
commit 1f459a3a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 3 deletions

View File

@ -2,7 +2,7 @@
{
public static class Const
{
public static string Version = "1.0.6v";
public static string Version = "1.0.7v";
// ---- Networking ----
/// <summary>

View File

@ -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;
}
}
}

View File

@ -18,7 +18,7 @@
<PackageProjectUrl>https://github.com/MrOkiDoki/BattleBit-Community-Server-API</PackageProjectUrl>
<RepositoryUrl>https://github.com/MrOkiDoki/BattleBit-Community-Server-API</RepositoryUrl>
<PackageTags>BattleBit</PackageTags>
<Version>1.0.6</Version>
<Version>1.0.7</Version>
</PropertyGroup>
<ItemGroup>