mirror of
https://github.com/MrOkiDoki/BattleBit-Community-Server-API.git
synced 2025-04-29 21:39:28 -04:00
Version 1.0.7
This commit is contained in:
parent
ce7200888c
commit
4cffd6e4b2
2 changed files with 16 additions and 2 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue