mirror of
https://github.com/MrOkiDoki/BattleBit-Community-Server-API.git
synced 2025-01-09 11:17:30 -03:00
commit
1f459a3a0f
3 changed files with 17 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
public static class Const
|
||||
{
|
||||
public static string Version = "1.0.6v";
|
||||
public static string Version = "1.0.7v";
|
||||
|
||||
// ---- Networking ----
|
||||
/// <summary>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue