Remove cloneData parameter from AutoNetworkedField (#20596)
This commit is contained in:
@@ -52,7 +52,7 @@ public sealed partial class HungerComponent : Component
|
||||
/// A dictionary relating HungerThreshold to the amount of <see cref="CurrentHunger"/> needed for each one
|
||||
/// </summary>
|
||||
[DataField("thresholds", customTypeSerializer: typeof(DictionarySerializer<HungerThreshold, float>))]
|
||||
[AutoNetworkedField(cloneData: true)]
|
||||
[AutoNetworkedField]
|
||||
public Dictionary<HungerThreshold, float> Thresholds = new()
|
||||
{
|
||||
{ HungerThreshold.Overfed, 200.0f },
|
||||
@@ -66,7 +66,7 @@ public sealed partial class HungerComponent : Component
|
||||
/// A dictionary relating hunger thresholds to corresponding alerts.
|
||||
/// </summary>
|
||||
[DataField("hungerThresholdAlerts", customTypeSerializer: typeof(DictionarySerializer<HungerThreshold, AlertType>))]
|
||||
[AutoNetworkedField(cloneData: true)]
|
||||
[AutoNetworkedField]
|
||||
public Dictionary<HungerThreshold, AlertType> HungerThresholdAlerts = new()
|
||||
{
|
||||
{ HungerThreshold.Peckish, AlertType.Peckish },
|
||||
@@ -78,7 +78,7 @@ public sealed partial class HungerComponent : Component
|
||||
/// A dictionary relating HungerThreshold to how much they modify <see cref="BaseDecayRate"/>.
|
||||
/// </summary>
|
||||
[DataField("hungerThresholdDecayModifiers", customTypeSerializer: typeof(DictionarySerializer<HungerThreshold, float>))]
|
||||
[AutoNetworkedField(cloneData: true)]
|
||||
[AutoNetworkedField]
|
||||
public Dictionary<HungerThreshold, float> HungerThresholdDecayModifiers = new()
|
||||
{
|
||||
{ HungerThreshold.Overfed, 1.2f },
|
||||
|
||||
Reference in New Issue
Block a user