mirror of
https://github.com/MrOkiDoki/BattleBit-Community-Server-API.git
synced 2025-01-09 11:17:30 -03:00
Merge pull request #72 from MrOkiDoki/develop
ServerSettings.UnlockAllAttachments = true;
This commit is contained in:
commit
9c1f8881f6
3 changed files with 22 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
public static class Const
|
||||
{
|
||||
public static string Version = "1.0.3v";
|
||||
public static string Version = "1.0.4v";
|
||||
|
||||
// ---- Networking ----
|
||||
/// <summary>
|
||||
|
|
|
@ -180,6 +180,18 @@ namespace BattleBitAPI.Server
|
|||
}
|
||||
}
|
||||
|
||||
public bool UnlockAllAttachments
|
||||
{
|
||||
get => mResources._RoomSettings.UnlockAllAttachments;
|
||||
set
|
||||
{
|
||||
if (mResources._RoomSettings.UnlockAllAttachments == value)
|
||||
return;
|
||||
mResources._RoomSettings.UnlockAllAttachments = value;
|
||||
mResources.IsDirtyRoomSettings = true;
|
||||
}
|
||||
}
|
||||
|
||||
// ---- Reset ----
|
||||
public void Reset()
|
||||
{
|
||||
|
@ -209,6 +221,8 @@ namespace BattleBitAPI.Server
|
|||
public float APCSpawnDelayMultipler = 1.0f;
|
||||
public float HelicopterSpawnDelayMultipler = 1.0f;
|
||||
|
||||
public bool UnlockAllAttachments = false;
|
||||
|
||||
public void Write(Common.Serialization.Stream ser)
|
||||
{
|
||||
ser.Write(this.DamageMultiplier);
|
||||
|
@ -230,6 +244,8 @@ namespace BattleBitAPI.Server
|
|||
ser.Write(this.SeaVehicleSpawnDelayMultipler);
|
||||
ser.Write(this.APCSpawnDelayMultipler);
|
||||
ser.Write(this.HelicopterSpawnDelayMultipler);
|
||||
|
||||
ser.Write(this.UnlockAllAttachments);
|
||||
}
|
||||
public void Read(Common.Serialization.Stream ser)
|
||||
{
|
||||
|
@ -252,6 +268,8 @@ namespace BattleBitAPI.Server
|
|||
this.SeaVehicleSpawnDelayMultipler = ser.ReadFloat();
|
||||
this.APCSpawnDelayMultipler = ser.ReadFloat();
|
||||
this.HelicopterSpawnDelayMultipler = ser.ReadFloat();
|
||||
|
||||
this.UnlockAllAttachments = ser.ReadBool();
|
||||
}
|
||||
public void Reset()
|
||||
{
|
||||
|
@ -274,6 +292,8 @@ namespace BattleBitAPI.Server
|
|||
this.SeaVehicleSpawnDelayMultipler = 1.0f;
|
||||
this.APCSpawnDelayMultipler = 1.0f;
|
||||
this.HelicopterSpawnDelayMultipler = 1.0f;
|
||||
|
||||
this.UnlockAllAttachments = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.2.2</Version>
|
||||
<Version>1.0.3</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Loading…
Reference in a new issue