Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into upstream-sync
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/publish.yml
#	Content.Server/Chat/Managers/ChatManager.cs
#	Content.Server/Chat/Systems/ChatSystem.cs
#	Content.Server/GameTicking/GameTicker.RoundFlow.cs
#	Content.Server/GameTicking/GameTicker.Spawning.cs
#	Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs
#	Content.Server/Zombies/ZombieSystem.Transform.cs
#	Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml
#	Resources/Prototypes/Maps/bagel.yml
#	Resources/Prototypes/Maps/box.yml
#	Resources/Prototypes/Maps/fland.yml
#	Resources/Prototypes/Maps/marathon.yml
#	Resources/Prototypes/Maps/meta.yml
#	Resources/Prototypes/Roles/Jobs/Security/detective.yml
#	Resources/Textures/Tiles/attributions.yml
  • Loading branch information
Morb0 committed Aug 29, 2023
2 parents 2540079 + 7dd3d01 commit 1b513f0
Show file tree
Hide file tree
Showing 562 changed files with 241,533 additions and 237,803 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Run Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.6.0
with:
submodules: 'recursive'
- name: Get Engine version
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-docfx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
docfx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.6.0
- name: Setup submodule
run: |
git submodule update --init --recursive
Expand All @@ -19,9 +19,9 @@ jobs:
cd RobustToolbox/
git submodule update --init --recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x

- name: Install dependencies
run: dotnet restore
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/build-map-renderer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build & Test Map Renderer

on:
push:
branches: [ master, staging, trying ]
merge_group:
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches: [ master ]

jobs:
build:
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout Master
uses: actions/[email protected]

- name: Setup Submodule
run: |
git submodule update --init --recursive
- name: Pull engine updates
uses: space-wizards/[email protected]

- name: Update Engine Submodules
run: |
cd RobustToolbox/
git submodule update --init --recursive
- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: 7.0.x

- name: Install dependencies
run: dotnet restore

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

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

ci-success:
name: Build & Test Debug
needs:
- build
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0
6 changes: 3 additions & 3 deletions .github/workflows/build-test-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout Master
uses: actions/checkout@v2
uses: actions/checkout@v3.6.0

- name: Setup Submodule
run: |
Expand All @@ -34,9 +34,9 @@ jobs:
git submodule update --init --recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x

- name: Install dependencies
run: dotnet restore
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout Master
uses: actions/checkout@v2
uses: actions/checkout@v3.6.0

- name: Setup Submodule
run: |
Expand All @@ -34,9 +34,9 @@ jobs:
git submodule update --init --recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x

- name: Install dependencies
run: dotnet restore
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
steps:
# - name: Install dependencies
# run: sudo apt-get install -y python3-paramiko
#
- uses: actions/checkout@v2

- uses: actions/checkout@v3.6.0
with:
submodules: 'recursive'

Expand All @@ -37,9 +37,9 @@ jobs:
# Corvax-Secrets-End

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 6.0.100
dotnet-version: 7.0.x

- name: Get Engine Tag
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rsi-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3.6.0

- name: Get changed files
id: files
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

steps:
- name: Checkout Master
uses: actions/checkout@v2
uses: actions/checkout@v3.6.0

- name: Setup Submodule
run: |
Expand Down Expand Up @@ -63,9 +63,9 @@ jobs:
# Corvax-Secrets-End

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x

- name: Install dependencies
run: dotnet restore
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update-wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout Master
uses: actions/checkout@v2
uses: actions/checkout@v3.6.0

- name: Setup Submodule
run: |
Expand All @@ -36,9 +36,9 @@ jobs:
git submodule update --init --recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 6.0.100
dotnet-version: 7.0.x

- name: Install Dependencies
run: dotnet restore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-rgas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.actor != 'IanComradeBot' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.6.0
- name: Setup Submodule
run: git submodule update --init
# Corvax-Secrets-Start
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-rsis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Validate RSIs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.6.0
- name: Setup Submodule
run: git submodule update --init
# Corvax-Secrets-Start
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate_mapfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.actor != 'IanComradeBot' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.6.0
- name: Setup Submodule
run: git submodule update --init
# Corvax-Secrets-Start
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/yaml-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
if: github.actor != 'IanComradeBot' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3.6.0
- name: Setup submodule
run: |
git submodule update --init --recursive
Expand All @@ -24,9 +24,9 @@ jobs:
cd RobustToolbox/
git submodule update --init --recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: 6.0.100
dotnet-version: 7.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down
14 changes: 7 additions & 7 deletions Content.Benchmarks/DeviceNetworkingBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task SetupAsync()
{
ProgramShared.PathOffset = "../../../../";
_pair = await PoolManager.GetServerClient();
var server = _pair.Pair.Server;
var server = _pair.Server;

await server.WaitPost(() =>
{
Expand Down Expand Up @@ -96,9 +96,9 @@ public async Task Cleanup()
[Benchmark(Baseline = true, Description = "Entity Events")]
public async Task EventSentBaseline()
{
var server = _pair.Pair.Server;
var server = _pair.Server;

_pair.Pair.Server.Post(() =>
_pair.Server.Post(() =>
{
foreach (var entity in _targetEntities)
{
Expand All @@ -113,9 +113,9 @@ public async Task EventSentBaseline()
[Benchmark(Description = "Device Net Broadcast No Connection Checks")]
public async Task DeviceNetworkBroadcastNoConnectionChecks()
{
var server = _pair.Pair.Server;
var server = _pair.Server;

_pair.Pair.Server.Post(() =>
_pair.Server.Post(() =>
{
_deviceNetworkSystem.QueuePacket(_sourceEntity, null, _payload, 100);
});
Expand All @@ -127,9 +127,9 @@ public async Task DeviceNetworkBroadcastNoConnectionChecks()
[Benchmark(Description = "Device Net Broadcast Wireless Connection Checks")]
public async Task DeviceNetworkBroadcastWirelessConnectionChecks()
{
var server = _pair.Pair.Server;
var server = _pair.Server;

_pair.Pair.Server.Post(() =>
_pair.Server.Post(() =>
{
_deviceNetworkSystem.QueuePacket(_sourceWirelessEntity, null, _payload, 100);
});
Expand Down
6 changes: 3 additions & 3 deletions Content.Benchmarks/MapLoadBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void Setup()
ProgramShared.PathOffset = "../../../../";

_pair = PoolManager.GetServerClient().GetAwaiter().GetResult();
var server = _pair.Pair.Server;
var server = _pair.Server;

Paths = server.ResolveDependency<IPrototypeManager>()
.EnumeratePrototypes<GameMapPrototype>()
Expand All @@ -55,7 +55,7 @@ public async Task Cleanup()
public async Task LoadMap()
{
var mapPath = Paths[Map];
var server = _pair.Pair.Server;
var server = _pair.Server;
await server.WaitPost(() =>
{
var success = _mapLoader.TryLoad(new MapId(10), mapPath, out _);
Expand All @@ -67,7 +67,7 @@ await server.WaitPost(() =>
[IterationCleanup]
public void IterationCleanup()
{
var server = _pair.Pair.Server;
var server = _pair.Server;
server.WaitPost(() =>
{
_mapManager.DeleteMap(new MapId(10));
Expand Down
2 changes: 1 addition & 1 deletion Content.Benchmarks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static async Task MainAsync(string[] args)
{
PoolManager.Startup(typeof(Program).Assembly);
var pair = await PoolManager.GetServerClient();
var gameMaps = pair.Pair.Server.ResolveDependency<IPrototypeManager>().EnumeratePrototypes<GameMapPrototype>().ToList();
var gameMaps = pair.Server.ResolveDependency<IPrototypeManager>().EnumeratePrototypes<GameMapPrototype>().ToList();
MapLoadBenchmark.MapsSource = gameMaps.Select(x => x.ID);
await pair.CleanReturnAsync();

Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Animations/ReusableAnimations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static void AnimateEntityPickup(EntityUid entity, EntityCoordinates initi

var animatableClone = entMan.SpawnEntity("clientsideclone", initialPosition);
string val = entMan.GetComponent<MetaDataComponent>(entity).EntityName;
entMan.GetComponent<MetaDataComponent>(animatableClone).EntityName = val;
entMan.System<MetaDataSystem>().SetEntityName(animatableClone, val);

if (!entMan.TryGetComponent(entity, out SpriteComponent? sprite0))
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Anomaly/Ui/AnomalyGeneratorWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public AnomalyGeneratorWindow(EntityUid gen)
RobustXamlLoader.Load(this);
IoCManager.InjectDependencies(this);

EntityView.Sprite = _entityManager.GetComponent<SpriteComponent>(gen);
EntityView.SetEntity(gen);
EntityView.SpriteOffset = false;

GenerateButton.OnPressed += _ => OnGenerateButtonPressed?.Invoke();
Expand Down
25 changes: 21 additions & 4 deletions Content.Client/CharacterInfo/CharacterInfoSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Content.Shared.Objectives;
using Robust.Client.GameObjects;
using Robust.Client.Player;
using Robust.Client.UserInterface;

namespace Content.Client.CharacterInfo;

Expand Down Expand Up @@ -42,17 +43,33 @@ private void OnPlayerAttached(PlayerAttachSysMessage msg)

private void OnCharacterInfoEvent(CharacterInfoEvent msg, EntitySessionEventArgs args)
{
var sprite = CompOrNull<SpriteComponent>(msg.EntityUid);
var data = new CharacterData(msg.JobTitle, msg.Objectives, msg.Briefing, sprite, Name(msg.EntityUid));

var data = new CharacterData(msg.EntityUid, msg.JobTitle, msg.Objectives, msg.Briefing, Name(msg.EntityUid));
OnCharacterUpdate?.Invoke(data);
}

public List<Control> GetCharacterInfoControls(EntityUid uid)
{
var ev = new GetCharacterInfoControlsEvent(uid);
RaiseLocalEvent(uid, ref ev, true);
return ev.Controls;
}

public readonly record struct CharacterData(
EntityUid Entity,
string Job,
Dictionary<string, List<ConditionInfo>> Objectives,
string Briefing,
SpriteComponent? Sprite,
string EntityName
);

/// <summary>
/// Event raised to get additional controls to display in the character info menu.
/// </summary>
[ByRefEvent]
public readonly record struct GetCharacterInfoControlsEvent(EntityUid Entity)
{
public readonly List<Control> Controls = new();

public readonly EntityUid Entity = Entity;
}
}
Loading

0 comments on commit 1b513f0

Please sign in to comment.