Add ability to prevent ghosting (#12906)

* add ability to prevent ghosting to MindComponent.cs

* make minds preserve properties in certain transfer scenarios

* Revert "make minds preserve properties in certain transfer scenarios"

This reverts commit 333cae0db0faf4ef81767b93332271d944c90a0e.

* move PreventGhosting to the actual mind
This commit is contained in:
Chief-Engineer
2022-12-19 21:55:45 -06:00
committed by GitHub
parent f08b1be48c
commit fdb1181298
5 changed files with 21 additions and 3 deletions

View File

@@ -109,6 +109,13 @@ namespace Content.Server.Mind
[ViewVariables]
public IEnumerable<Objective> AllObjectives => _objectives;
/// <summary>
/// Prevents user from ghosting out
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("preventGhosting")]
public bool PreventGhosting { get; set; }
/// <summary>
/// The session of the player owning this mind.
/// Can be null, in which case the player is currently not logged in.