Allow changing the owner of a mind.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user