Make more Fields VV and more editable (#2051)
* Make more Fields VV and more editable * Applied feedback Co-authored-by: David Tan <>
This commit is contained in:
@@ -38,6 +38,7 @@ namespace Content.Client.GameObjects.Components.Mobs
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Allows calculating if we need to act due to this component being controlled by the current mob
|
/// Allows calculating if we need to act due to this component being controlled by the current mob
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[ViewVariables]
|
||||||
private bool CurrentlyControlled => _playerManager.LocalPlayer != null && _playerManager.LocalPlayer.ControlledEntity == Owner;
|
private bool CurrentlyControlled => _playerManager.LocalPlayer != null && _playerManager.LocalPlayer.ControlledEntity == Owner;
|
||||||
|
|
||||||
protected override void Shutdown()
|
protected override void Shutdown()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace Content.Server.GameObjects.Components.Atmos
|
|||||||
public float PressureResistance { get; set; } = 1f;
|
public float PressureResistance { get; set; } = 1f;
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
public float MoveResist { get; set; } = 100f;
|
public float MoveResist { get; set; } = 100f;
|
||||||
[ViewVariables]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
public int LastHighPressureMovementAirCycle { get; set; } = 0;
|
public int LastHighPressureMovementAirCycle { get; set; } = 0;
|
||||||
|
|
||||||
public override void ExposeData(ObjectSerializer serializer)
|
public override void ExposeData(ObjectSerializer serializer)
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
[ViewVariables] private bool HasBeaker => _beakerContainer.ContainedEntity != null;
|
[ViewVariables] private bool HasBeaker => _beakerContainer.ContainedEntity != null;
|
||||||
[ViewVariables] private bool _bufferModeTransfer = true;
|
[ViewVariables] private bool _bufferModeTransfer = true;
|
||||||
|
|
||||||
private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered;
|
[ViewVariables] private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered;
|
||||||
|
|
||||||
[ViewVariables] private readonly SolutionContainerComponent BufferSolution = new SolutionContainerComponent();
|
[ViewVariables] private readonly SolutionContainerComponent BufferSolution = new SolutionContainerComponent();
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
[ViewVariables] private ReagentUnit _dispenseAmount = ReagentUnit.New(10);
|
[ViewVariables] private ReagentUnit _dispenseAmount = ReagentUnit.New(10);
|
||||||
[ViewVariables] private SolutionContainerComponent? Solution => _beakerContainer.ContainedEntity.GetComponent<SolutionContainerComponent>();
|
[ViewVariables] private SolutionContainerComponent? Solution => _beakerContainer.ContainedEntity.GetComponent<SolutionContainerComponent>();
|
||||||
|
|
||||||
private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered;
|
[ViewVariables] private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered;
|
||||||
|
|
||||||
[ViewVariables] private BoundUserInterface? UserInterface => Owner.GetUIOrNull(ReagentDispenserUiKey.Key);
|
[ViewVariables] private BoundUserInterface? UserInterface => Owner.GetUIOrNull(ReagentDispenserUiKey.Key);
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ namespace Content.Server.GameObjects.Components.Disposal
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Last time that an entity tried to exit this disposal unit.
|
/// Last time that an entity tried to exit this disposal unit.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[ViewVariables]
|
||||||
private TimeSpan _lastExitAttempt;
|
private TimeSpan _lastExitAttempt;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -72,7 +73,7 @@ namespace Content.Server.GameObjects.Components.Disposal
|
|||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
private TimeSpan _flushDelay;
|
private TimeSpan _flushDelay;
|
||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
private float _entryDelay;
|
private float _entryDelay;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ namespace Content.Server.GameObjects.Components.Doors
|
|||||||
protected set => _state = value;
|
protected set => _state = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ViewVariables]
|
||||||
protected float OpenTimeCounter;
|
protected float OpenTimeCounter;
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
protected bool AutoClose = true;
|
protected bool AutoClose = true;
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ namespace Content.Server.GameObjects.Components.Items.Storage
|
|||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
public IReadOnlyCollection<IEntity>? StoredEntities => _storage?.ContainedEntities;
|
public IReadOnlyCollection<IEntity>? StoredEntities => _storage?.ContainedEntities;
|
||||||
|
|
||||||
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
public bool OccludesLight
|
public bool OccludesLight
|
||||||
{
|
{
|
||||||
get => _occludesLight;
|
get => _occludesLight;
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ namespace Content.Server.GameObjects.Components.Research
|
|||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
private LatheRecipePrototype? _producingRecipe;
|
private LatheRecipePrototype? _producingRecipe;
|
||||||
|
[ViewVariables]
|
||||||
private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered;
|
private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered;
|
||||||
|
|
||||||
private static readonly TimeSpan InsertionTime = TimeSpan.FromSeconds(0.9f);
|
private static readonly TimeSpan InsertionTime = TimeSpan.FromSeconds(0.9f);
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
|
|||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
private string _fillPrototype;
|
private string _fillPrototype;
|
||||||
|
[ViewVariables]
|
||||||
private int _unspawnedCount;
|
private int _unspawnedCount;
|
||||||
|
|
||||||
public bool BoltOpen
|
public bool BoltOpen
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
|
|||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
private string _fillPrototype;
|
private string _fillPrototype;
|
||||||
|
[ViewVariables]
|
||||||
private int _unspawnedCount;
|
private int _unspawnedCount;
|
||||||
|
|
||||||
private bool _manualCycle;
|
private bool _manualCycle;
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
|
|||||||
private AppearanceComponent _appearanceComponent;
|
private AppearanceComponent _appearanceComponent;
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
private string _fillPrototype;
|
private string _fillPrototype;
|
||||||
|
[ViewVariables]
|
||||||
private int _unspawnedCount;
|
private int _unspawnedCount;
|
||||||
|
|
||||||
// Sounds
|
// Sounds
|
||||||
|
|||||||
Reference in New Issue
Block a user