forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request space-wizards#1381 from space-syndicate/upstream-sync
Upstream sync
- Loading branch information
Showing
243 changed files
with
5,097 additions
and
2,172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using Content.Shared.Mind; | ||
|
||
namespace Content.Client.Mind; | ||
|
||
public sealed class MindSystem : SharedMindSystem | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Content.Shared.Players; | ||
using Robust.Shared.Players; | ||
|
||
namespace Content.Client.Players; | ||
|
||
public sealed class PlayerSystem : SharedPlayerSystem | ||
{ | ||
public override PlayerData? ContentData(ICommonSession? session) | ||
{ | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using Content.Client.CharacterInfo; | ||
using Content.Client.Message; | ||
using Content.Shared.Points; | ||
using Robust.Client.UserInterface; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Client.Points; | ||
|
||
/// <inheritdoc/> | ||
public sealed class PointSystem : SharedPointSystem | ||
{ | ||
[Dependency] private readonly CharacterInfoSystem _characterInfo = default!; | ||
|
||
/// <inheritdoc/> | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<PointManagerComponent, ComponentHandleState>(OnHandleState); | ||
SubscribeLocalEvent<CharacterInfoSystem.GetCharacterInfoControlsEvent>(OnGetCharacterInfoControls); | ||
} | ||
|
||
private void OnHandleState(EntityUid uid, PointManagerComponent component, ref ComponentHandleState args) | ||
{ | ||
if (args.Current is not PointManagerComponentState state) | ||
return; | ||
|
||
component.Points = new(state.Points); | ||
component.Scoreboard = state.Scoreboard; | ||
_characterInfo.RequestCharacterInfo(); | ||
} | ||
|
||
private void OnGetCharacterInfoControls(ref CharacterInfoSystem.GetCharacterInfoControlsEvent ev) | ||
{ | ||
foreach (var point in EntityQuery<PointManagerComponent>()) | ||
{ | ||
var box = new BoxContainer | ||
{ | ||
Margin = new Thickness(5), | ||
Orientation = BoxContainer.LayoutOrientation.Vertical | ||
}; | ||
|
||
var title = new RichTextLabel | ||
{ | ||
HorizontalAlignment = Control.HAlignment.Center | ||
}; | ||
title.SetMarkup(Loc.GetString("point-scoreboard-header")); | ||
|
||
var text = new RichTextLabel(); | ||
text.SetMessage(point.Scoreboard); | ||
|
||
box.AddChild(title); | ||
box.AddChild(text); | ||
ev.Controls.Add(box); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using Content.Shared.Roles.Jobs; | ||
|
||
namespace Content.Client.Roles.Jobs; | ||
|
||
public sealed class JobSystem : SharedJobSystem | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Content.Client.Roles; | ||
|
||
public sealed class RoleSystem : EntitySystem | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,40 @@ | ||
using Content.Shared.Storage.EntitySystems; | ||
using System.Diagnostics.CodeAnalysis; | ||
using Content.Client.Storage.Components; | ||
using Content.Shared.Destructible; | ||
using Content.Shared.Interaction; | ||
using Content.Shared.Lock; | ||
using Content.Shared.Movement.Events; | ||
using Content.Shared.Storage.Components; | ||
using Content.Shared.Storage.EntitySystems; | ||
using Content.Shared.Verbs; | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Client.Storage.Systems; | ||
|
||
public sealed class EntityStorageSystem : SharedEntityStorageSystem | ||
{ | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
SubscribeLocalEvent<EntityStorageComponent, ComponentInit>(OnComponentInit); | ||
SubscribeLocalEvent<EntityStorageComponent, ComponentStartup>(OnComponentStartup); | ||
SubscribeLocalEvent<EntityStorageComponent, ActivateInWorldEvent>(OnInteract, after: new[] { typeof(LockSystem) }); | ||
SubscribeLocalEvent<EntityStorageComponent, LockToggleAttemptEvent>(OnLockToggleAttempt); | ||
SubscribeLocalEvent<EntityStorageComponent, DestructionEventArgs>(OnDestruction); | ||
SubscribeLocalEvent<EntityStorageComponent, GetVerbsEvent<InteractionVerb>>(AddToggleOpenVerb); | ||
SubscribeLocalEvent<EntityStorageComponent, ContainerRelayMovementEntityEvent>(OnRelayMovement); | ||
|
||
SubscribeLocalEvent<EntityStorageComponent, ComponentGetState>(OnGetState); | ||
SubscribeLocalEvent<EntityStorageComponent, ComponentHandleState>(OnHandleState); | ||
} | ||
|
||
public override bool ResolveStorage(EntityUid uid, [NotNullWhen(true)] ref SharedEntityStorageComponent? component) | ||
{ | ||
if (component != null) | ||
return true; | ||
|
||
TryComp<EntityStorageComponent>(uid, out var storage); | ||
component = storage; | ||
return component != null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.