Skip to content

Commit 92c7af6

Browse files
Merge pull request #1123 from walksanatora/perfect-merge
Perfect merge
2 parents e444579 + 69b465f commit 92c7af6

3,275 files changed

Lines changed: 161006 additions & 1094746 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 360 additions & 3 deletions
Large diffs are not rendered by default.

.github/workflows/build-docfx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: dotnet restore
2828

2929
- name: Build Project
30-
run: dotnet build --no-restore /p:WarningsAsErrors=nullable
30+
run: dotnet build --no-restore
3131

3232
- name: Build DocFX
3333
uses: nikeee/docfx-action@v1.0.0

.github/workflows/build-map-renderer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: dotnet restore
4343

4444
- name: Build Project
45-
run: dotnet build Content.MapRenderer --configuration Release --no-restore /p:WarningsAsErrors=nullable /m
45+
run: dotnet build Content.MapRenderer --configuration Release --no-restore /m
4646

4747
- name: Run Map Renderer
4848
run: dotnet run --project Content.MapRenderer Dev

.github/workflows/build-test-debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: dotnet restore
4343

4444
- name: Build Project
45-
run: dotnet build --configuration DebugOpt --no-restore /p:WarningsAsErrors=nullable /m
45+
run: dotnet build --configuration DebugOpt --no-restore /m
4646

4747
- name: Run Content.Tests
4848
run: dotnet test --no-build --configuration DebugOpt Content.Tests/Content.Tests.csproj -- NUnit.ConsoleOut=0

.github/workflows/check-trailing-whitespace.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/labeler-needsreview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
on:
44
pull_request_target:
5-
types: [review_requested]
5+
types: [review_requested, opened]
66

77
jobs:
88
add_label:

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ If you believe someone is violating the code of conduct, we ask that you report
2727

2828
Original text courtesy of the [Speak Up! project](http://web.archive.org/web/20141109123859/http://speakup.io/coc.html).
2929

30-
## On Comunity Moderation
30+
## On Community Moderation
3131

3232
Deviating from the Code of Conduct on the Github repository may result in moderative actions taken by project Maintainers. This can involve your content being edited or deleted, and may result in a temporary or permanent block from the repository.
3333

Content.Benchmarks/SpawnEquipDeleteBenchmark.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using Robust.Shared.Analyzers;
99
using Robust.Shared.GameObjects;
1010
using Robust.Shared.Map;
11+
using Robust.Shared.Prototypes;
1112

1213
namespace Content.Benchmarks;
1314

@@ -18,9 +19,11 @@ namespace Content.Benchmarks;
1819
[Virtual, MemoryDiagnoser]
1920
public class SpawnEquipDeleteBenchmark
2021
{
22+
private static readonly EntProtoId Mob = "MobHuman";
23+
private static readonly ProtoId<StartingGearPrototype> CaptainStartingGear = "CaptainGear";
24+
2125
private TestPair _pair = default!;
2226
private StationSpawningSystem _spawnSys = default!;
23-
private const string Mob = "MobHuman";
2427
private StartingGearPrototype _gear = default!;
2528
private EntityUid _entity;
2629
private EntityCoordinates _coords;
@@ -39,7 +42,7 @@ public async Task SetupAsync()
3942
var mapData = await _pair.CreateTestMap();
4043
_coords = mapData.GridCoords;
4144
_spawnSys = server.System<StationSpawningSystem>();
42-
_gear = server.ProtoMan.Index<StartingGearPrototype>("CaptainGear");
45+
_gear = server.ProtoMan.Index(CaptainStartingGear);
4346
}
4447

4548
[GlobalCleanup]

Content.Client/Access/Commands/ShowAccessReadersCommand.cs

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,20 @@
44

55
namespace Content.Client.Access.Commands;
66

7-
public sealed class ShowAccessReadersCommand : IConsoleCommand
7+
public sealed class ShowAccessReadersCommand : LocalizedEntityCommands
88
{
9-
public string Command => "showaccessreaders";
9+
[Dependency] private readonly IOverlayManager _overlay = default!;
10+
[Dependency] private readonly IResourceCache _cache = default!;
11+
[Dependency] private readonly SharedTransformSystem _xform = default!;
1012

11-
public string Description => "Toggles showing access reader permissions on the map";
12-
public string Help => """
13-
Overlay Info:
14-
-Disabled | The access reader is disabled
15-
+Unrestricted | The access reader has no restrictions
16-
+Set [Index]: [Tag Name]| A tag in an access set (accessor needs all tags in the set to be allowed by the set)
17-
+Key [StationUid]: [StationRecordKeyId] | A StationRecordKey that is allowed
18-
-Tag [Tag Name] | A tag that is not allowed (takes priority over other allows)
19-
""";
20-
public void Execute(IConsoleShell shell, string argStr, string[] args)
21-
{
22-
var collection = IoCManager.Instance;
23-
24-
if (collection == null)
25-
return;
26-
27-
var overlay = collection.Resolve<IOverlayManager>();
13+
public override string Command => "showaccessreaders";
2814

29-
if (overlay.RemoveOverlay<AccessOverlay>())
30-
{
31-
shell.WriteLine($"Set access reader debug overlay to false");
32-
return;
33-
}
34-
35-
var entManager = collection.Resolve<IEntityManager>();
36-
var cache = collection.Resolve<IResourceCache>();
37-
var xform = entManager.System<SharedTransformSystem>();
15+
public override void Execute(IConsoleShell shell, string argStr, string[] args)
16+
{
17+
var existing = _overlay.RemoveOverlay<AccessOverlay>();
18+
if (!existing)
19+
_overlay.AddOverlay(new AccessOverlay(EntityManager, _cache, _xform));
3820

39-
overlay.AddOverlay(new AccessOverlay(entManager, cache, xform));
40-
shell.WriteLine($"Set access reader debug overlay to true");
21+
shell.WriteLine(Loc.GetString($"cmd-showaccessreaders-status", ("status", !existing)));
4122
}
4223
}

Content.Client/Access/UI/GroupedAccessLevelChecklist.xaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ namespace Content.Client.Access.UI;
1515
[GenerateTypedNameReferences]
1616
public sealed partial class GroupedAccessLevelChecklist : BoxContainer
1717
{
18+
private static readonly ProtoId<AccessGroupPrototype> GeneralAccessGroup = "General";
19+
1820
[Dependency] private readonly IPrototypeManager _protoManager = default!;
1921

2022
private bool _isMonotone;
@@ -63,7 +65,7 @@ private void ArrangeAccessControls()
6365

6466
// Ensure that the 'general' access group is added to handle
6567
// misc. access levels that aren't associated with any group
66-
if (_protoManager.TryIndex<AccessGroupPrototype>("General", out var generalAccessProto))
68+
if (_protoManager.TryIndex(GeneralAccessGroup, out var generalAccessProto))
6769
_groupedAccessLevels.TryAdd(generalAccessProto, new());
6870

6971
// Assign known access levels with their associated groups

0 commit comments

Comments
 (0)