Class MindSystem
Inheritance
System.Object
MindSystem
Assembly: Content.Server.dll
Syntax
public sealed class MindSystem : SharedMindSystem
Methods
|
Improve this Doc
View Source
GetSession(MindComponent)
Declaration
public IPlayerSession GetSession(MindComponent mind)
Parameters
Returns
Type |
Description |
Robust.Server.Player.IPlayerSession |
|
|
Improve this Doc
View Source
Initialize()
Declaration
public override void Initialize()
Overrides
|
Improve this Doc
View Source
SetUserId(EntityUid, Nullable<NetUserId>, MindComponent)
Sets the Mind's UserId, Session, and updates the player's PlayerData. This should have no direct effect on the
entity that any mind is connected to, except as a side effect of the fact that it may change a player's
attached entity. E.g., ghosts get deleted.
Declaration
public override void SetUserId(EntityUid mindId, NetUserId? userId, MindComponent mind = null)
Parameters
Type |
Name |
Description |
EntityUid |
mindId |
|
System.Nullable<Robust.Shared.Network.NetUserId> |
userId |
|
MindComponent |
mind |
|
|
Improve this Doc
View Source
TransferTo(EntityUid, Nullable<EntityUid>, Boolean, Boolean, MindComponent)
Declaration
public override void TransferTo(EntityUid mindId, EntityUid? entity, bool ghostCheckOverride = false, bool createGhost = true, MindComponent mind = null)
Parameters
Type |
Name |
Description |
EntityUid |
mindId |
|
System.Nullable<EntityUid> |
entity |
|
System.Boolean |
ghostCheckOverride |
|
System.Boolean |
createGhost |
|
MindComponent |
mind |
|
|
Improve this Doc
View Source
TryGetMind(NetUserId, out Nullable<EntityUid>, out MindComponent)
Declaration
public override bool TryGetMind(NetUserId user, out EntityUid? mindId, out MindComponent mind)
Parameters
Type |
Name |
Description |
Robust.Shared.Network.NetUserId |
user |
|
System.Nullable<EntityUid> |
mindId |
|
MindComponent |
mind |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetSession(MindComponent, out IPlayerSession)
Declaration
public bool TryGetSession(MindComponent mind, out IPlayerSession session)
Parameters
Type |
Name |
Description |
MindComponent |
mind |
|
Robust.Server.Player.IPlayerSession |
session |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TryGetSession(Nullable<EntityUid>, out IPlayerSession)
Declaration
public bool TryGetSession(EntityUid? mindId, out IPlayerSession session)
Parameters
Type |
Name |
Description |
System.Nullable<EntityUid> |
mindId |
|
Robust.Server.Player.IPlayerSession |
session |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
UnVisit(EntityUid, MindComponent)
Declaration
public override void UnVisit(EntityUid mindId, MindComponent mind = null)
Parameters
|
Improve this Doc
View Source
Visit(EntityUid, EntityUid, MindComponent)
Declaration
public override void Visit(EntityUid mindId, EntityUid entity, MindComponent mind = null)
Parameters
Type |
Name |
Description |
EntityUid |
mindId |
|
EntityUid |
entity |
|
MindComponent |
mind |
|
|
Improve this Doc
View Source
WipeAllMinds()
Declaration
public override void WipeAllMinds()
Overrides