From 816ee2e1ab51b05a3e24c064dfbc4171588481b5 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Wed, 15 Nov 2023 13:23:40 +1100 Subject: [PATCH] Gateway destinations (#21040) * Gateway generation * Gateway stuff * gatewehs * mercenaries * play area * Range fixes and tweaks * weh * Gateway UI polish * Lots of fixes * Knock some items off * Fix dungeon spawning Realistically we should probably be using a salvage job. * wahwah * wehvs * expression * weh * eee * a * a * WEH * frfr * Gatwey * Fix gateway windows * Fix gateway windows * a * a * Better layer masking * a * a * Noise fixes * a * Fix fractal calculations * a * More fixes * Fixes * Add layers back in * Fixes * namespaces and ftl * Other TODO * Fix distance * Cleanup * Fix test --- .../Gateway/UI/GatewayBoundUserInterface.cs | 3 +- Content.Client/Gateway/UI/GatewayWindow.xaml | 25 +- .../Gateway/UI/GatewayWindow.xaml.cs | 188 +++++++---- .../StencilOverlay.RestrictedRange.cs | 57 ++++ .../Overlays/StencilOverlay.Weather.cs | 68 ++++ Content.Client/Overlays/StencilOverlay.cs | 77 +++++ .../Overlays/StencilOverlaySystem.cs | 27 ++ Content.Client/Parallax/BiomeDebugOverlay.cs | 88 ++++++ .../Parallax/Commands/ShowBiomeCommand.cs | 22 ++ Content.Client/Parallax/ParallaxSystem.cs | 53 ++++ .../Salvage/RestrictedRangeSystem.cs | 7 + Content.Client/Weather/WeatherOverlay.cs | 218 ------------- Content.Client/Weather/WeatherSystem.cs | 8 - .../Gateway/Components/GatewayComponent.cs | 38 ++- .../Components/GatewayDestinationComponent.cs | 48 --- .../Components/GatewayGeneratorComponent.cs | 68 ++++ .../GatewayGeneratorDestinationComponent.cs | 37 +++ .../Gateway/Systems/GatewayGeneratorSystem.cs | 234 ++++++++++++++ .../Gateway/Systems/GatewaySystem.cs | 220 +++++++++---- Content.Server/Maps/PlanetCommand.cs | 43 +-- .../Movement/Systems/BoundarySystem.cs | 32 ++ .../Parallax/BiomeSystem.Commands.cs | 8 +- Content.Server/Parallax/BiomeSystem.cs | 183 +++++++---- Content.Server/Procedural/DungeonSystem.cs | 9 +- .../Salvage/RestrictedRangeSystem.cs | 8 + .../Salvage/SpawnSalvageMissionJob.cs | 9 +- Content.Shared/Gateway/GatewayUi.cs | 46 ++- .../Gateway/SharedGatewayGeneratorSystem.cs | 12 + .../Movement/Components/BoundaryComponent.cs | 13 + .../Parallax/Biomes/BiomeComponent.cs | 2 - .../Markers/BiomeMarkerLayerPrototype.cs | 25 +- .../Biomes/Markers/IBiomeMarkerLayer.cs | 4 +- .../Parallax/Biomes/SharedBiomeSystem.cs | 133 +++----- .../Procedural/Loot/BiomeMarkerLoot.cs | 6 +- .../Salvage/RestrictedRangeComponent.cs | 17 + .../Salvage/SharedRestrictedRangeSystem.cs | 6 + .../Components/LinkedEntityComponent.cs | 2 +- .../Components/PortalComponent.cs | 6 + .../Systems/LinkedEntitySystem.cs | 20 +- .../Systems/SharedPortalSystem.cs | 5 +- Resources/Locale/en-US/gateway/gateway.ftl | 7 +- .../Prototypes/Entities/Stations/base.yml | 7 + .../Entities/Stations/nanotrasen.yml | 1 + .../Entities/Structures/Machines/gateway.yml | 12 - .../Prototypes/Procedural/biome_markers.yml | 24 +- .../Procedural/biome_ore_templates.yml | 299 ++++-------------- .../Prototypes/Procedural/biome_templates.yml | 13 +- .../Prototypes/Procedural/salvage_loot.yml | 48 +-- Resources/Prototypes/Shaders/shaders.yml | 7 +- .../Shaders/world_gradient_circle.swsl | 27 ++ Resources/clientCommandPerms.yml | 1 + 51 files changed, 1562 insertions(+), 959 deletions(-) create mode 100644 Content.Client/Overlays/StencilOverlay.RestrictedRange.cs create mode 100644 Content.Client/Overlays/StencilOverlay.Weather.cs create mode 100644 Content.Client/Overlays/StencilOverlay.cs create mode 100644 Content.Client/Overlays/StencilOverlaySystem.cs create mode 100644 Content.Client/Parallax/BiomeDebugOverlay.cs create mode 100644 Content.Client/Parallax/Commands/ShowBiomeCommand.cs create mode 100644 Content.Client/Salvage/RestrictedRangeSystem.cs delete mode 100644 Content.Client/Weather/WeatherOverlay.cs delete mode 100644 Content.Server/Gateway/Components/GatewayDestinationComponent.cs create mode 100644 Content.Server/Gateway/Components/GatewayGeneratorComponent.cs create mode 100644 Content.Server/Gateway/Components/GatewayGeneratorDestinationComponent.cs create mode 100644 Content.Server/Gateway/Systems/GatewayGeneratorSystem.cs create mode 100644 Content.Server/Movement/Systems/BoundarySystem.cs create mode 100644 Content.Server/Salvage/RestrictedRangeSystem.cs create mode 100644 Content.Shared/Gateway/SharedGatewayGeneratorSystem.cs create mode 100644 Content.Shared/Movement/Components/BoundaryComponent.cs create mode 100644 Content.Shared/Salvage/RestrictedRangeComponent.cs create mode 100644 Content.Shared/Salvage/SharedRestrictedRangeSystem.cs create mode 100644 Resources/Textures/Shaders/world_gradient_circle.swsl diff --git a/Content.Client/Gateway/UI/GatewayBoundUserInterface.cs b/Content.Client/Gateway/UI/GatewayBoundUserInterface.cs index 78e0060e9c..fdb3cdbc01 100644 --- a/Content.Client/Gateway/UI/GatewayBoundUserInterface.cs +++ b/Content.Client/Gateway/UI/GatewayBoundUserInterface.cs @@ -17,7 +17,8 @@ public sealed class GatewayBoundUserInterface : BoundUserInterface { base.Open(); - _window = new GatewayWindow(); + _window = new GatewayWindow(EntMan.GetNetEntity(Owner)); + _window.OpenPortal += destination => { SendMessage(new GatewayOpenPortalMessage(destination)); diff --git a/Content.Client/Gateway/UI/GatewayWindow.xaml b/Content.Client/Gateway/UI/GatewayWindow.xaml index 49e6bb679b..7650850a70 100644 --- a/Content.Client/Gateway/UI/GatewayWindow.xaml +++ b/Content.Client/Gateway/UI/GatewayWindow.xaml @@ -3,11 +3,26 @@ Title="{Loc 'gateway-window-title'}" MinSize="800 360"> - - - + + + +