Allow changing the owner of a mind.

This commit is contained in:
Pieter-Jan Briers
2018-11-24 19:12:22 +01:00
parent 10120bb0b6
commit 9780cf9062
2 changed files with 52 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
using Content.Server.Mobs;
using SS14.Server.Interfaces.Player;
using SS14.Shared.IoC;
using SS14.Shared.Network;
using SS14.Shared.ViewVariables;
@@ -19,10 +20,16 @@ namespace Content.Server.Players
/// <summary>
/// The currently occupied mind of the player owning this data.
/// DO NOT DIRECTLY SET THIS UNLESS YOU KNOW WHAT YOU'RE DOING.
/// </summary>
[ViewVariables]
public Mind Mind { get; set; }
public void WipeMind()
{
Mind.ChangeOwningPlayer(null);
}
public PlayerData(NetSessionId sessionId)
{
SessionId = sessionId;