mirror of
https://github.com/MrOkiDoki/BattleBit-Community-Server-API.git
synced 2025-01-25 02:33:08 -03:00
commit
1f459a3a0f
3 changed files with 17 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
{
|
{
|
||||||
public static class Const
|
public static class Const
|
||||||
{
|
{
|
||||||
public static string Version = "1.0.6v";
|
public static string Version = "1.0.7v";
|
||||||
|
|
||||||
// ---- Networking ----
|
// ---- Networking ----
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -213,6 +213,17 @@ namespace BattleBitAPI.Server
|
||||||
mResources.IsDirtyRoomSettings = true;
|
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 ----
|
// ---- Reset ----
|
||||||
public void Reset()
|
public void Reset()
|
||||||
|
@ -245,6 +256,7 @@ namespace BattleBitAPI.Server
|
||||||
|
|
||||||
public bool UnlockAllAttachments = false;
|
public bool UnlockAllAttachments = false;
|
||||||
public bool TeamlessMode = false;
|
public bool TeamlessMode = false;
|
||||||
|
public bool SquadRequiredToChangeRole = true;
|
||||||
|
|
||||||
public void Write(Common.Serialization.Stream ser)
|
public void Write(Common.Serialization.Stream ser)
|
||||||
{
|
{
|
||||||
|
@ -270,6 +282,7 @@ namespace BattleBitAPI.Server
|
||||||
|
|
||||||
ser.Write(this.UnlockAllAttachments);
|
ser.Write(this.UnlockAllAttachments);
|
||||||
ser.Write(this.TeamlessMode);
|
ser.Write(this.TeamlessMode);
|
||||||
|
ser.Write(this.SquadRequiredToChangeRole);
|
||||||
}
|
}
|
||||||
public void Read(Common.Serialization.Stream ser)
|
public void Read(Common.Serialization.Stream ser)
|
||||||
{
|
{
|
||||||
|
@ -295,7 +308,7 @@ namespace BattleBitAPI.Server
|
||||||
|
|
||||||
this.UnlockAllAttachments = ser.ReadBool();
|
this.UnlockAllAttachments = ser.ReadBool();
|
||||||
this.TeamlessMode = ser.ReadBool();
|
this.TeamlessMode = ser.ReadBool();
|
||||||
|
this.SquadRequiredToChangeRole = ser.ReadBool();
|
||||||
}
|
}
|
||||||
public void Reset()
|
public void Reset()
|
||||||
{
|
{
|
||||||
|
@ -321,6 +334,7 @@ namespace BattleBitAPI.Server
|
||||||
|
|
||||||
this.UnlockAllAttachments = false;
|
this.UnlockAllAttachments = false;
|
||||||
this.TeamlessMode = false;
|
this.TeamlessMode = false;
|
||||||
|
this.SquadRequiredToChangeRole = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<PackageProjectUrl>https://github.com/MrOkiDoki/BattleBit-Community-Server-API</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/MrOkiDoki/BattleBit-Community-Server-API</PackageProjectUrl>
|
||||||
<RepositoryUrl>https://github.com/MrOkiDoki/BattleBit-Community-Server-API</RepositoryUrl>
|
<RepositoryUrl>https://github.com/MrOkiDoki/BattleBit-Community-Server-API</RepositoryUrl>
|
||||||
<PackageTags>BattleBit</PackageTags>
|
<PackageTags>BattleBit</PackageTags>
|
||||||
<Version>1.0.6</Version>
|
<Version>1.0.7</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Add table
Reference in a new issue