Skip to content

Commit 42d8362

Browse files
author
Marty
committed
Merge remote-tracking branch 'origin/master'
2 parents 29b37d8 + 7c85c9f commit 42d8362

1,934 files changed

Lines changed: 41150 additions & 8366 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ csharp_style_expression_bodied_methods = false:suggestion
7777
#csharp_style_expression_bodied_operators = false:silent
7878
csharp_style_expression_bodied_properties = true:suggestion
7979

80+
csharp_style_namespace_declarations = file_scoped:suggestion
81+
8082
# Pattern matching preferences
8183
#csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
8284
#csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pyyaml==6.0.2

.github/Schemas/rga.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# If this gets updated, make sure to also update https://github.com/space-wizards/RobustToolboxSpecifications
2+
3+
list(include('attribution'), min=1)
4+
---
5+
attribution:
6+
files: list(str())
7+
license: license()
8+
copyright: str()
9+
source: url()
10+
11+
# Example
12+
# - files: ["deprecated.png"]
13+
# license: "MIT"
14+
# copyright: "created by 20kdc"
15+
# source: "https://github.com/ParadiseSS13/Paradise"
16+
#
17+
# - files: ["arcadeblue2.png", "boxing.png", "carpetclown.png", "carpetoffice.png", "gym.png", "metaldiamond.png"]
18+
# license: "CC-BY-NC-SA-3.0"
19+
# copyright: "by WALPVRGIS for Goonstation, taken at commit 236551b95a5b24917c72f3069223026b2dc4e690 from floors.dmi"
20+
# source: "https://github.com/goonstation/goonstation"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
validators
2+
pyyaml==6.0.2

.github/Schemas/rga_validators.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
from yamale.validators import Validator
2+
import validators
3+
4+
class License(Validator):
5+
tag = "license"
6+
licenses = [
7+
"CC-BY-3.0",
8+
"CC-BY-4.0",
9+
"CC-BY-SA-3.0",
10+
"CC-BY-SA-4.0",
11+
"CC-BY-NC-3.0",
12+
"CC-BY-NC-4.0",
13+
"CC-BY-NC-SA-3.0",
14+
"CC-BY-NC-SA-4.0",
15+
"CC-BY-ND-4.0",
16+
"CC0-1.0",
17+
"MIT",
18+
"Custom" # implies that the license is described in the copyright field.
19+
]
20+
21+
def _is_valid(self, value):
22+
return value in self.licenses
23+
24+
class Url(Validator):
25+
tag = "url"
26+
27+
def _is_valid(self, value):
28+
# Source field is required to ensure its not neglected, but there may be no applicable URL
29+
return (value == "NA") or validators.url(value)

.github/workflows/validate-rgas.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: space-wizards/submodule-dependency@v0.1.5
3636
- uses: PaulRitter/yaml-schema-validator@v1
3737
with:
38-
schema: RobustToolbox/Schemas/rga.yml
38+
schema: .github/Schemas/rga.yml
3939
path_pattern: .*attributions.ya?ml$
4040
validators_path: RobustToolbox/Schemas/rga_validators.py
41-
validators_requirements: RobustToolbox/Schemas/rga_requirements.txt
41+
validators_requirements: .github/Schemas/rga_requirements.txt

.github/workflows/validate_mapfiles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
schema: RobustToolbox/Schemas/mapfile.yml
3838
path_pattern: .*Resources/Maps/.*
3939
validators_path: RobustToolbox/Schemas/mapfile_validators.py
40-
validators_requirements: RobustToolbox/Schemas/mapfile_requirements.txt
40+
validators_requirements: .github/Schemas/mapfile_requirements.txt

Content.Benchmarks/SpawnEquipDeleteBenchmark.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using Robust.Shared.Analyzers;
1818
using Robust.Shared.GameObjects;
1919
using Robust.Shared.Map;
20+
using Robust.Shared.Prototypes;
2021

2122
namespace Content.Benchmarks;
2223

@@ -27,9 +28,11 @@ namespace Content.Benchmarks;
2728
[Virtual, MemoryDiagnoser]
2829
public class SpawnEquipDeleteBenchmark
2930
{
31+
private static readonly EntProtoId Mob = "MobHuman";
32+
private static readonly ProtoId<StartingGearPrototype> CaptainStartingGear = "CaptainGear";
33+
3034
private TestPair _pair = default!;
3135
private StationSpawningSystem _spawnSys = default!;
32-
private const string Mob = "MobHuman";
3336
private StartingGearPrototype _gear = default!;
3437
private EntityUid _entity;
3538
private EntityCoordinates _coords;
@@ -48,7 +51,7 @@ public async Task SetupAsync()
4851
var mapData = await _pair.CreateTestMap();
4952
_coords = mapData.GridCoords;
5053
_spawnSys = server.System<StationSpawningSystem>();
51-
_gear = server.ProtoMan.Index<StartingGearPrototype>("CaptainGear");
54+
_gear = server.ProtoMan.Index(CaptainStartingGear);
5255
}
5356

5457
[GlobalCleanup]

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ namespace Content.Client.Access.UI;
2020
[GenerateTypedNameReferences]
2121
public sealed partial class GroupedAccessLevelChecklist : BoxContainer
2222
{
23+
private static readonly ProtoId<AccessGroupPrototype> GeneralAccessGroup = "General";
24+
2325
[Dependency] private readonly IPrototypeManager _protoManager = default!;
2426

2527
private bool _isMonotone;
@@ -68,7 +70,7 @@ private void ArrangeAccessControls()
6870

6971
// Ensure that the 'general' access group is added to handle
7072
// misc. access levels that aren't associated with any group
71-
if (_protoManager.TryIndex<AccessGroupPrototype>("General", out var generalAccessProto))
73+
if (_protoManager.TryIndex(GeneralAccessGroup, out var generalAccessProto))
7274
_groupedAccessLevels.TryAdd(generalAccessProto, new());
7375

7476
// Assign known access levels with their associated groups

Content.Client/Administration/UI/ManageSolutions/EditSolutionsWindow.xaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ SPDX-License-Identifier: MIT
1919
<OptionButton Name="SolutionOption" HorizontalExpand="True"/>
2020
</BoxContainer>
2121

22+
<BoxContainer Orientation="Horizontal" HorizontalExpand="True" Margin="0 4">
23+
<Button Name="VVButton"
24+
Text="{Loc 'admin-solutions-window-vv-button'}"
25+
ToolTip="{Loc 'admin-solutions-window-vv-button-tooltip'}"
26+
Disabled="True"
27+
HorizontalExpand="True"
28+
StyleClasses="OpenRight"/>
29+
<Button Name="SolutionButton"
30+
Text="{Loc 'admin-solutions-window-solution-button'}"
31+
ToolTip="{Loc 'admin-solutions-window-solution-button-tooltip'}"
32+
Disabled="True"
33+
HorizontalExpand="True"
34+
StyleClasses="OpenLeft"/>
35+
</BoxContainer>
36+
2237
<!-- The total volume / capacity of the solution -->
2338
<BoxContainer Name="VolumeBox" Orientation="Vertical" HorizontalExpand="True" Margin="0 4"/>
2439

0 commit comments

Comments
 (0)