Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Content.Shared.Stealth.Components;
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[Access(typeof(SharedStealthSystem))]
|
||||
public sealed class StealthComponent : Component
|
||||
public sealed partial class StealthComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether or not the stealth effect should currently be applied.
|
||||
@@ -29,7 +29,7 @@ public sealed class StealthComponent : Component
|
||||
/// Minimum visibility before the entity becomes unexaminable (and thus no longer appears on context menus).
|
||||
/// </summary>
|
||||
[DataField("examineThreshold")]
|
||||
public readonly float ExamineThreshold = 0.5f;
|
||||
public float ExamineThreshold = 0.5f;
|
||||
|
||||
/// <summary>
|
||||
/// Last set level of visibility. The visual effect ranges from 1 (fully visible) and -1 (fully hidden). Values
|
||||
@@ -53,13 +53,13 @@ public sealed class StealthComponent : Component
|
||||
/// Minimum visibility. Note that the visual effect caps out at -1, but this value is allowed to be larger or smaller.
|
||||
/// </summary>
|
||||
[DataField("minVisibility")]
|
||||
public readonly float MinVisibility = -1f;
|
||||
public float MinVisibility = -1f;
|
||||
|
||||
/// <summary>
|
||||
/// Maximum visibility. Note that the visual effect caps out at +1, but this value is allowed to be larger or smaller.
|
||||
/// </summary>
|
||||
[DataField("maxVisibility")]
|
||||
public readonly float MaxVisibility = 1.5f;
|
||||
public float MaxVisibility = 1.5f;
|
||||
|
||||
/// <summary>
|
||||
/// Localization string for how you'd like to describe this effect.
|
||||
|
||||
Reference in New Issue
Block a user