mirror of
https://github.com/MrOkiDoki/BattleBit-Community-Server-API.git
synced 2025-01-09 19:27:31 -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 class Const
|
||||||
{
|
{
|
||||||
public static string Version = "1.0.3v";
|
public static string Version = "1.0.4v";
|
||||||
|
|
||||||
// ---- Networking ----
|
// ---- Networking ----
|
||||||
/// <summary>
|
/// <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 ----
|
// ---- Reset ----
|
||||||
public void Reset()
|
public void Reset()
|
||||||
{
|
{
|
||||||
|
@ -209,6 +221,8 @@ namespace BattleBitAPI.Server
|
||||||
public float APCSpawnDelayMultipler = 1.0f;
|
public float APCSpawnDelayMultipler = 1.0f;
|
||||||
public float HelicopterSpawnDelayMultipler = 1.0f;
|
public float HelicopterSpawnDelayMultipler = 1.0f;
|
||||||
|
|
||||||
|
public bool UnlockAllAttachments = false;
|
||||||
|
|
||||||
public void Write(Common.Serialization.Stream ser)
|
public void Write(Common.Serialization.Stream ser)
|
||||||
{
|
{
|
||||||
ser.Write(this.DamageMultiplier);
|
ser.Write(this.DamageMultiplier);
|
||||||
|
@ -230,6 +244,8 @@ namespace BattleBitAPI.Server
|
||||||
ser.Write(this.SeaVehicleSpawnDelayMultipler);
|
ser.Write(this.SeaVehicleSpawnDelayMultipler);
|
||||||
ser.Write(this.APCSpawnDelayMultipler);
|
ser.Write(this.APCSpawnDelayMultipler);
|
||||||
ser.Write(this.HelicopterSpawnDelayMultipler);
|
ser.Write(this.HelicopterSpawnDelayMultipler);
|
||||||
|
|
||||||
|
ser.Write(this.UnlockAllAttachments);
|
||||||
}
|
}
|
||||||
public void Read(Common.Serialization.Stream ser)
|
public void Read(Common.Serialization.Stream ser)
|
||||||
{
|
{
|
||||||
|
@ -252,6 +268,8 @@ namespace BattleBitAPI.Server
|
||||||
this.SeaVehicleSpawnDelayMultipler = ser.ReadFloat();
|
this.SeaVehicleSpawnDelayMultipler = ser.ReadFloat();
|
||||||
this.APCSpawnDelayMultipler = ser.ReadFloat();
|
this.APCSpawnDelayMultipler = ser.ReadFloat();
|
||||||
this.HelicopterSpawnDelayMultipler = ser.ReadFloat();
|
this.HelicopterSpawnDelayMultipler = ser.ReadFloat();
|
||||||
|
|
||||||
|
this.UnlockAllAttachments = ser.ReadBool();
|
||||||
}
|
}
|
||||||
public void Reset()
|
public void Reset()
|
||||||
{
|
{
|
||||||
|
@ -274,6 +292,8 @@ namespace BattleBitAPI.Server
|
||||||
this.SeaVehicleSpawnDelayMultipler = 1.0f;
|
this.SeaVehicleSpawnDelayMultipler = 1.0f;
|
||||||
this.APCSpawnDelayMultipler = 1.0f;
|
this.APCSpawnDelayMultipler = 1.0f;
|
||||||
this.HelicopterSpawnDelayMultipler = 1.0f;
|
this.HelicopterSpawnDelayMultipler = 1.0f;
|
||||||
|
|
||||||
|
this.UnlockAllAttachments = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.2.2</Version>
|
<Version>1.0.3</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Reference in a new issue