Surveillance cameras (#8246)

* cameras but i didn't feel like git stashing them

* Adds more functionality server-side for surveillance cameras

* rider moment

* Adds skeleton for SurveillanceCameraMonitorBoundUi on client

* whoops

* makes surveillance camera monitor UI more defined

* removes tree from SurveillanceCameraMonitorWindow

* surveillance camera active flag, other routing things

* actually sets how SurveillanceCameraMonitorSystem sends camera info to clients

* adds entity yaml, changes field

* adds the camera/monitor entities, makes the UI open

* SurveillanceCameraRouters (not implemented fully)

* subnets for cameras, server-side

* it works!

* fixes rotation in cameras

* whoops

restores surveillance cameras to ignored components
makes it so that switching cameras now lerps the other camera

* makes the UI work

* makes it so that cameras actually refresh now

* cleanup

* adds camera.rsi

* cleans up prototypes a bit

* adds camera subnet frequencies, cameras in subnets

* adds surveillance camera router subnets

* might fix testing errors

* adds the circuit board to the surveillance camera monitor

* fixes up the camera monitor (the detective will get his tv soon)

* adds heartbeat, ensures subnet data is passed into cameras to send

* fixes up a few things

* whoops

* changes to UI internals

* fixes subnet selection issue

* localized strings for UI

* changes 'test' id to 'camera' for cameras

* whoops

* missing s

* camera static!

* adds a delay to camera switching

* adjusts a few things in camera timing

* adds setup for cameras/routers, localization for frequency names

* adds setup ui for routers, makes subnet names in monitor window follow frequency name in prototype

* localization, some cleanup

* ui adjustments

* adds surveillance camera visuals

* fixes a bug when closing the UI for monitors

* adds disconnect message to UI

* adds construction graph to cameras

* adds the camera to the construction menu

* fixes network selection for setup, tweak to assembly

* adds surveillance camera router construction, fixes up surveillance camera wire cutting

* adds disconnect button to monitor UI

* switches around the status text

* tweaks monitor UI

* makes the address actually show

* might make tests pass

* UI adjustments, hard name limit

* ok, that didn't work

* adds wireless cameras

* makes the television work/look nicer

* adds tripod cameras in addition to mobile cameras

* makes wireless cameras constructable

* fixes up those prototypes

* reorganization in C#, small cleanup

* ensures that power changes deactivate some devices

* adds a component to the television, comments out a function

* actually, never mind, i forgot that wireless cameras existed/are creatable for a second

* tweaks to router construction, removes SubnetTest from prototypes

* removes it from frequencies too

* Apply suggestions from code review

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>

* type serializers into components

* setup window opens centered, enum is now byte

* replaces active monitor list with ActiveSurveillanceCameraMonitorComponent

* adds paused/deleted entity checks, changes how verbs are given

* removes EntitySystem.Get<T>() references

* fixes bug related to selecting network from setup, alphabet-orders network listing in setup

* rider moment

* adds minwidth to surveillance camera setup window

* addresses reviews

* should fix the issue with camera visuals not updating properly

* addresses some reviews

* addresses further review

* addresses reviews related to RSIs

* never needed a key there anyways

* changes a few things with routers to ensure that they're active

* whoops

* ensurecomp over addcomp

* whoops

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Flipp Syder
2022-05-31 01:44:57 -07:00
committed by GitHub
parent 69d8a2beee
commit d4697c000c
59 changed files with 2945 additions and 27 deletions

View File

@@ -0,0 +1,57 @@
- type: constructionGraph
id: SurveillanceCamera
start: start
graph:
- node: start
edges:
- to: assembly
steps:
- material: Steel
amount: 2
doAfter: 2.0
- node: assembly
entity: SurveillanceCameraAssembly
edges:
- to: wired
steps:
- material: Cable
amount: 1
doAfter: 1
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:DeleteEntity {}
steps:
- tool: Welding
doAfter: 2
- node: wired
entity: SurveillanceCameraAssembly
edges:
- to: camera
steps:
- tool: Screwing
doAfter: 2
# once a camera is constructed, it will
# instead just require wire cutting + welding
# to immediately deconstruct
- node: camera
entity: SurveillanceCameraConstructed
edges:
- to: start
conditions:
- !type:AllWiresCut {}
- !type:WirePanel {}
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 2
- !type:DeleteEntity {}
steps:
- tool: Welding
doAfter: 2

View File

@@ -1,3 +1,17 @@
- type: construction
name: camera
id: camera
graph: SurveillanceCamera
startNode: start
targetNode: camera
category: Utilities
description: "Surveillance camera. It's watching. Soon."
icon:
sprite: Structures/Wallmounts/camera.rsi
state: camera
objectType: Structure
placementMode: SnapgridCenter
# POWER
- type: construction
name: APC
@@ -457,4 +471,4 @@
icon:
sprite: Structures/Piping/Atmospherics/gasmixer.rsi
state: gasMixer

View File

@@ -294,3 +294,39 @@
materials:
Steel: 100
Glass: 900
- type: latheRecipe
id: SurveillanceCameraRouterCircuitboard
icon: Objects/Misc/module.rsi/id_mod.png
result: SurveillanceCameraRouterCircuitboard
completetime: 4
materials:
Steel: 100
Glass: 900
- type: latheRecipe
id: SurveillanceCameraWirelessRouterCircuitboard
icon: Objects/Misc/module.rsi/id_mod.png
result: SurveillanceCameraWirelessRouterCircuitboard
completetime: 4
materials:
Steel: 100
Glass: 900
- type: latheRecipe
id: SurveillanceWirelessCameraAnchoredCircuitboard
icon: Objects/Misc/module.rsi/id_mod.png
result: SurveillanceWirelessCameraAnchoredCircuitboard
completetime: 4
materials:
Steel: 100
Glass: 900
- type: latheRecipe
id: SurveillanceWirelessCameraMovableCircuitboard
icon: Objects/Misc/module.rsi/id_mod.png
result: SurveillanceWirelessCameraMovableCircuitboard
completetime: 4
materials:
Steel: 100
Glass: 900