Make more fields VV-writeable (#21754)

This commit is contained in:
LordEclipse
2023-11-19 15:17:53 -05:00
committed by GitHub
parent 808555ade6
commit f3df6b85af
13 changed files with 28 additions and 28 deletions

View File

@@ -22,7 +22,7 @@ public sealed partial class MechComponent : Component
/// <summary>
/// The maximum amount of damage the mech can take.
/// </summary>
[DataField, AutoNetworkedField]
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadWrite)]
public FixedPoint2 MaxIntegrity = 250;
/// <summary>
@@ -36,7 +36,7 @@ public sealed partial class MechComponent : Component
/// The maximum amount of energy the mech can have.
/// Derived from the currently inserted battery.
/// </summary>
[DataField, AutoNetworkedField]
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadWrite)]
public FixedPoint2 MaxEnergy = 0;
/// <summary>
@@ -52,7 +52,7 @@ public sealed partial class MechComponent : Component
/// A multiplier used to calculate how much of the damage done to a mech
/// is transfered to the pilot
/// </summary>
[DataField]
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float MechToPilotDamageMultiplier;
/// <summary>
@@ -80,7 +80,7 @@ public sealed partial class MechComponent : Component
/// <summary>
/// The maximum amount of equipment items that can be installed in the mech
/// </summary>
[DataField("maxEquipmentAmount")]
[DataField("maxEquipmentAmount"), ViewVariables(VVAccess.ReadWrite)]
public int MaxEquipmentAmount = 3;
/// <summary>
@@ -104,20 +104,20 @@ public sealed partial class MechComponent : Component
/// <summary>
/// How long it takes to enter the mech.
/// </summary>
[DataField]
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float EntryDelay = 3;
/// <summary>
/// How long it takes to pull *another person*
/// outside of the mech. You can exit instantly yourself.
/// </summary>
[DataField]
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float ExitDelay = 3;
/// <summary>
/// How long it takes to pull out the battery.
/// </summary>
[DataField]
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float BatteryRemovalDelay = 2;
/// <summary>