Namespace cleanup around Mind Roles (#30965)
* namespaces * Comment does not need a semicolon --------- Co-authored-by: Vasilis <vascreeper@yahoo.com>
This commit is contained in:
@@ -7,8 +7,8 @@ using Robust.Shared.GameObjects;
|
|||||||
using Robust.Shared.IoC;
|
using Robust.Shared.IoC;
|
||||||
using Robust.Shared.Maths;
|
using Robust.Shared.Maths;
|
||||||
|
|
||||||
namespace Content.Client.Administration
|
namespace Content.Client.Administration;
|
||||||
{
|
|
||||||
internal sealed class AdminNameOverlay : Overlay
|
internal sealed class AdminNameOverlay : Overlay
|
||||||
{
|
{
|
||||||
private readonly AdminSystem _system;
|
private readonly AdminSystem _system;
|
||||||
@@ -70,4 +70,3 @@ namespace Content.Client.Administration
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ using Robust.Client.UserInterface.XAML;
|
|||||||
using static Content.Client.Administration.UI.Tabs.PlayerTab.PlayerTabHeader;
|
using static Content.Client.Administration.UI.Tabs.PlayerTab.PlayerTabHeader;
|
||||||
using static Robust.Client.UserInterface.Controls.BaseButton;
|
using static Robust.Client.UserInterface.Controls.BaseButton;
|
||||||
|
|
||||||
namespace Content.Client.Administration.UI.Tabs.PlayerTab
|
namespace Content.Client.Administration.UI.Tabs.PlayerTab;
|
||||||
{
|
|
||||||
[GenerateTypedNameReferences]
|
[GenerateTypedNameReferences]
|
||||||
public sealed partial class PlayerTab : Control
|
public sealed partial class PlayerTab : Control
|
||||||
{
|
{
|
||||||
@@ -226,4 +226,3 @@ namespace Content.Client.Administration.UI.Tabs.PlayerTab
|
|||||||
}
|
}
|
||||||
|
|
||||||
public record PlayerListData(PlayerInfo Info, string FilteringString) : ListData;
|
public record PlayerListData(PlayerInfo Info, string FilteringString) : ListData;
|
||||||
}
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ using Content.Shared.Chat;
|
|||||||
using Robust.Client.Console;
|
using Robust.Client.Console;
|
||||||
using Robust.Shared.Utility;
|
using Robust.Shared.Utility;
|
||||||
|
|
||||||
namespace Content.Client.Chat.Managers
|
namespace Content.Client.Chat.Managers;
|
||||||
{
|
|
||||||
internal sealed class ChatManager : IChatManager
|
internal sealed class ChatManager : IChatManager
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IClientConsoleHost _consoleHost = default!;
|
[Dependency] private readonly IClientConsoleHost _consoleHost = default!;
|
||||||
@@ -72,4 +72,3 @@ namespace Content.Client.Chat.Managers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ using Robust.Shared.Enums;
|
|||||||
using Robust.Shared.Network;
|
using Robust.Shared.Network;
|
||||||
using Robust.Shared.Player;
|
using Robust.Shared.Player;
|
||||||
|
|
||||||
namespace Content.Server.Administration.Systems
|
namespace Content.Server.Administration.Systems;
|
||||||
{
|
|
||||||
public sealed class AdminSystem : EntitySystem
|
public sealed class AdminSystem : EntitySystem
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IAdminManager _adminManager = default!;
|
[Dependency] private readonly IAdminManager _adminManager = default!;
|
||||||
@@ -453,4 +453,3 @@ namespace Content.Server.Administration.Systems
|
|||||||
UpdatePlayerList(session);
|
UpdatePlayerList(session);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ using Robust.Shared.Player;
|
|||||||
using Robust.Shared.Replays;
|
using Robust.Shared.Replays;
|
||||||
using Robust.Shared.Utility;
|
using Robust.Shared.Utility;
|
||||||
|
|
||||||
namespace Content.Server.Chat.Managers
|
namespace Content.Server.Chat.Managers;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Dispatches chat messages to clients.
|
/// Dispatches chat messages to clients.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -399,4 +399,3 @@ namespace Content.Server.Chat.Managers
|
|||||||
OOC,
|
OOC,
|
||||||
Admin
|
Admin
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
namespace Content.Server.Ghost
|
namespace Content.Server.Ghost;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is used to mark Observers properly, as they get Minds
|
/// This is used to mark Observers properly, as they get Minds
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -8,4 +8,3 @@
|
|||||||
{
|
{
|
||||||
public string Name => Loc.GetString("observer-role-name");
|
public string Name => Loc.GetString("observer-role-name");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
using Content.Server.Mind.Commands;
|
using Content.Server.Mind.Commands;
|
||||||
using Content.Shared.Roles;
|
using Content.Shared.Roles;
|
||||||
|
|
||||||
namespace Content.Server.Ghost.Roles.Components
|
namespace Content.Server.Ghost.Roles.Components;
|
||||||
{
|
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
[Access(typeof(GhostRoleSystem))]
|
[Access(typeof(GhostRoleSystem))]
|
||||||
public sealed partial class GhostRoleComponent : Component
|
public sealed partial class GhostRoleComponent : Component
|
||||||
@@ -100,4 +100,3 @@ namespace Content.Server.Ghost.Roles.Components
|
|||||||
[Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
|
[Access(typeof(GhostRoleSystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
|
||||||
public GhostRoleRaffleConfig? RaffleConfig { get; set; }
|
public GhostRoleRaffleConfig? RaffleConfig { get; set; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ using Content.Shared.Verbs;
|
|||||||
using Robust.Shared.Collections;
|
using Robust.Shared.Collections;
|
||||||
using Content.Shared.Ghost.Roles.Components;
|
using Content.Shared.Ghost.Roles.Components;
|
||||||
|
|
||||||
namespace Content.Server.Ghost.Roles
|
namespace Content.Server.Ghost.Roles;
|
||||||
{
|
|
||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
public sealed class GhostRoleSystem : EntitySystem
|
public sealed class GhostRoleSystem : EntitySystem
|
||||||
{
|
{
|
||||||
@@ -824,4 +824,3 @@ namespace Content.Server.Ghost.Roles
|
|||||||
shell.WriteLine("You can only open the ghost roles UI on a client.");
|
shell.WriteLine("You can only open the ghost roles UI on a client.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ using Content.Shared.Traits.Assorted;
|
|||||||
using Robust.Shared.Audio.Systems;
|
using Robust.Shared.Audio.Systems;
|
||||||
using Content.Shared.Ghost.Roles.Components;
|
using Content.Shared.Ghost.Roles.Components;
|
||||||
|
|
||||||
namespace Content.Server.Zombies
|
namespace Content.Server.Zombies;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Handles zombie propagation and inherent zombie traits
|
/// Handles zombie propagation and inherent zombie traits
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -278,4 +278,3 @@ namespace Content.Server.Zombies
|
|||||||
_movementSpeedModifier.RefreshMovementSpeedModifiers(target);
|
_movementSpeedModifier.RefreshMovementSpeedModifiers(target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
using Robust.Shared.Serialization;
|
using Robust.Shared.Serialization;
|
||||||
|
|
||||||
namespace Content.Shared.Administration.Events
|
namespace Content.Shared.Administration.Events;
|
||||||
{
|
|
||||||
[NetSerializable, Serializable]
|
[NetSerializable, Serializable]
|
||||||
public sealed class PlayerInfoChangedEvent : EntityEventArgs
|
public sealed class PlayerInfoChangedEvent : EntityEventArgs
|
||||||
{
|
{
|
||||||
public PlayerInfo? PlayerInfo;
|
public PlayerInfo? PlayerInfo;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using Robust.Shared.Network;
|
using Robust.Shared.Network;
|
||||||
using Robust.Shared.Serialization;
|
using Robust.Shared.Serialization;
|
||||||
|
|
||||||
namespace Content.Shared.Administration
|
namespace Content.Shared.Administration;
|
||||||
{
|
|
||||||
[Serializable, NetSerializable]
|
[Serializable, NetSerializable]
|
||||||
public sealed record PlayerInfo(
|
public sealed record PlayerInfo(
|
||||||
string Username,
|
string Username,
|
||||||
@@ -33,4 +33,3 @@ namespace Content.Shared.Administration
|
|||||||
return SessionId.GetHashCode();
|
return SessionId.GetHashCode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Robust.Shared.Serialization;
|
using Robust.Shared.Serialization;
|
||||||
|
|
||||||
namespace Content.Shared.Ghost.Roles
|
namespace Content.Shared.Ghost.Roles;
|
||||||
{
|
|
||||||
[Serializable, NetSerializable]
|
[Serializable, NetSerializable]
|
||||||
public sealed class GhostRole
|
public sealed class GhostRole
|
||||||
{
|
{
|
||||||
@@ -9,4 +9,3 @@ namespace Content.Shared.Ghost.Roles
|
|||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
public NetEntity Id;
|
public NetEntity Id;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using Robust.Shared.GameStates;
|
using Robust.Shared.GameStates;
|
||||||
|
|
||||||
namespace Content.Shared.Mind.Components
|
namespace Content.Shared.Mind.Components;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This component indicates that this entity may have mind, which is simply an entity with a <see cref="MindComponent"/>.
|
/// This component indicates that this entity may have mind, which is simply an entity with a <see cref="MindComponent"/>.
|
||||||
/// The mind entity is not actually stored in a "container", but is simply stored in nullspace.
|
/// The mind entity is not actually stored in a "container", but is simply stored in nullspace.
|
||||||
@@ -94,4 +94,3 @@ namespace Content.Shared.Mind.Components
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ using Robust.Shared.GameStates;
|
|||||||
using Robust.Shared.Network;
|
using Robust.Shared.Network;
|
||||||
using Robust.Shared.Player;
|
using Robust.Shared.Player;
|
||||||
|
|
||||||
namespace Content.Shared.Mind
|
namespace Content.Shared.Mind;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This component stores information about a player/mob mind. The component will be attached to a mind-entity
|
/// This component stores information about a player/mob mind. The component will be attached to a mind-entity
|
||||||
/// which is stored in null-space. The entity that is currently "possessed" by the mind will have a
|
/// which is stored in null-space. The entity that is currently "possessed" by the mind will have a
|
||||||
@@ -106,4 +106,3 @@ namespace Content.Shared.Mind
|
|||||||
// TODO remove this after moving IPlayerManager functions to shared
|
// TODO remove this after moving IPlayerManager functions to shared
|
||||||
public ICommonSession? Session { get; set; }
|
public ICommonSession? Session { get; set; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user