44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
namespace Content.Server.Mind.Components
|
|
{
|
|
/// <summary>
|
|
/// Stores a <see cref="Server.Mind.Mind"/> on a mob.
|
|
/// </summary>
|
|
[RegisterComponent, Friend(typeof(MindSystem))]
|
|
public sealed class MindComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The mind controlling this mob. Can be null.
|
|
/// </summary>
|
|
[ViewVariables]
|
|
public Mind? Mind { get; set; }
|
|
|
|
/// <summary>
|
|
/// True if we have a mind, false otherwise.
|
|
/// </summary>
|
|
[ViewVariables]
|
|
public bool HasMind => Mind != null;
|
|
|
|
/// <summary>
|
|
/// Whether examining should show information about the mind or not.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("showExamineInfo")]
|
|
public bool ShowExamineInfo { get; set; }
|
|
|
|
/// <summary>
|
|
/// Whether the mind will be put on a ghost after this component is shutdown.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("ghostOnShutdown")]
|
|
public bool GhostOnShutdown { get; set; } = true;
|
|
}
|
|
|
|
public sealed class MindRemovedMessage : EntityEventArgs
|
|
{
|
|
}
|
|
|
|
public sealed class MindAddedMessage : EntityEventArgs
|
|
{
|
|
}
|
|
}
|