Fix thirst errors in tests (#20481)
This commit is contained in:
@@ -19,13 +19,10 @@ public sealed partial class ThirstComponent : Component
|
||||
[AutoNetworkedField]
|
||||
public float ActualDecayRate;
|
||||
|
||||
// Thirst
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
[AutoNetworkedField]
|
||||
[DataField, AutoNetworkedField]
|
||||
public ThirstThreshold CurrentThirstThreshold;
|
||||
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
[AutoNetworkedField]
|
||||
[DataField, AutoNetworkedField]
|
||||
public ThirstThreshold LastThirstThreshold;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
@@ -38,13 +35,13 @@ public sealed partial class ThirstComponent : Component
|
||||
/// </summary>
|
||||
[DataField("nextUpdateTime", customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
|
||||
[AutoNetworkedField]
|
||||
public TimeSpan NextUpdateTime;
|
||||
public TimeSpan NextUpdateTime = TimeSpan.MaxValue;
|
||||
|
||||
/// <summary>
|
||||
/// The time between each update.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[AutoNetworkedField]
|
||||
[DataField, AutoNetworkedField]
|
||||
public TimeSpan UpdateRate = TimeSpan.FromSeconds(1);
|
||||
|
||||
[DataField("thresholds")]
|
||||
|
||||
Reference in New Issue
Block a user