Slight localization func cleanup (#11380)
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Content.Server.Administration.Commands
|
||||
var loc = IoCManager.Resolve<ILocalizationManager>();
|
||||
|
||||
// ReSharper disable once ConvertIfStatementToSwitchStatement
|
||||
if (args.Length == 1 && TimeSpan.TryParseExact(args[0], Localization.TimeSpanMinutesFormats, loc.DefaultCulture, out var timeSpan))
|
||||
if (args.Length == 1 && TimeSpan.TryParseExact(args[0], ContentLocalizationManager.TimeSpanMinutesFormats, loc.DefaultCulture, out var timeSpan))
|
||||
{
|
||||
EntitySystem.Get<RoundEndSystem>().RequestRoundEnd(timeSpan, shell.Player?.AttachedEntity, false);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Content.Server.Cuffs.Components
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entities = default!;
|
||||
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
||||
|
||||
|
||||
private string _brokenName = string.Empty;
|
||||
private string _brokenDesc = string.Empty;
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Content.Server.Cuffs.Components
|
||||
/// The iconstate used for broken handcuffs
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("brokenName")]
|
||||
[DataField("brokenName", readOnly: true)]
|
||||
public string BrokenName
|
||||
{
|
||||
get => _brokenName;
|
||||
@@ -94,7 +94,7 @@ namespace Content.Server.Cuffs.Components
|
||||
/// The iconstate used for broken handcuffs
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("brokenDesc")]
|
||||
[DataField("brokenDesc", readOnly: true)]
|
||||
public string BrokenDesc
|
||||
{
|
||||
get => _brokenDesc;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Content.Server.Storage.Components
|
||||
public sealed class SecretStashComponent : Component
|
||||
{
|
||||
private string _secretPartName = string.Empty;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Max item size that can be fitted into secret stash.
|
||||
/// </summary>
|
||||
@@ -27,7 +27,7 @@ namespace Content.Server.Storage.Components
|
||||
/// IC secret stash name. For example "the toilet cistern".
|
||||
/// If empty string, will replace it with entity name in init.
|
||||
/// </summary>
|
||||
[ViewVariables] [DataField("secretPartName")]
|
||||
[ViewVariables] [DataField("secretPartName", readOnly: true)]
|
||||
public string SecretPartName
|
||||
{
|
||||
get => _secretPartName;
|
||||
|
||||
Reference in New Issue
Block a user