Remove CanReturnToBody property from SharedGhostComponent

This commit is contained in:
zumorica
2020-04-09 03:01:56 +02:00
parent 612790840c
commit c0bdfdf123
3 changed files with 3 additions and 10 deletions

View File

@@ -14,14 +14,9 @@ namespace Content.Client.GameObjects.Components.Observer
public class GhostComponent : SharedGhostComponent
{
private GhostGui _gui;
private bool _canReturnToBody = true;
[ViewVariables(VVAccess.ReadOnly)]
public override bool CanReturnToBody
{
get => _canReturnToBody;
set {}
}
public bool CanReturnToBody { get; private set; } = true;
#pragma warning disable 649
[Dependency] private readonly IGameHud _gameHud;
@@ -92,7 +87,7 @@ namespace Content.Client.GameObjects.Components.Observer
if (!(curState is GhostComponentState state)) return;
_canReturnToBody = state.CanReturnToBody;
CanReturnToBody = state.CanReturnToBody;
if (Owner == _playerManager.LocalPlayer.ControlledEntity)
{

View File

@@ -18,7 +18,7 @@ namespace Content.Server.GameObjects.Components.Observer
private bool _canReturnToBody = true;
[ViewVariables(VVAccess.ReadWrite)]
public override bool CanReturnToBody
public bool CanReturnToBody
{
get => _canReturnToBody;
set

View File

@@ -8,8 +8,6 @@ namespace Content.Shared.GameObjects.Components.Observer
{
public override string Name => "Ghost";
public override uint? NetID => ContentNetIDs.GHOST;
public virtual bool CanReturnToBody { get; set; } = true;
}
[Serializable, NetSerializable]