forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'SerbiaStrong-220:master' into PumpkinLantern-Craft
- Loading branch information
Showing
63 changed files
with
954 additions
and
389 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 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
12 changes: 12 additions & 0 deletions
12
Content.Server/SS220/AirlockVisuals/AirlockVisualsComponent.cs
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 Robust.Shared.GameStates; | ||
|
||
namespace Content.Server.SS220.AirlockVisuals; | ||
|
||
/// <summary> | ||
/// This component used for our airlock visuals | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class AirlockVisualsComponent : Component | ||
{ | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
Content.Server/SS220/AirlockVisuals/AirlockVisualsSystem.cs
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,19 @@ | ||
using Content.Shared.Doors.Components; | ||
using Robust.Server.GameObjects; | ||
|
||
namespace Content.Server.SS220.AirlockVisuals; | ||
|
||
public sealed class AirlockVisualsSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly AppearanceSystem _appearance = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
SubscribeLocalEvent<AirlockVisualsComponent, ComponentInit>(OnComponentInit); | ||
} | ||
|
||
private void OnComponentInit(Entity<AirlockVisualsComponent> ent, ref ComponentInit args) | ||
{ | ||
_appearance.SetData(ent.Owner, DoorVisuals.ClosedLights, true); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
Content.Server/SS220/BackendApi/ResponseModels/ServerStatusResponseModel.cs
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,10 @@ | ||
namespace Content.Server.SS220.BackendApi.ResponseModels; | ||
|
||
internal sealed class ServerStatusResponseModel | ||
{ | ||
public int PlayersCount { get; set; } | ||
|
||
public TimeSpan RoundDuration { get; set; } | ||
|
||
public int AdminCount { get; set; } | ||
} |
Oops, something went wrong.