Thermomachines code cleaning + some QoL (#14772)
@@ -1,4 +1,4 @@
|
|||||||
using Robust.Client.AutoGenerated;
|
using Robust.Client.AutoGenerated;
|
||||||
using Robust.Client.UserInterface.Controls;
|
using Robust.Client.UserInterface.Controls;
|
||||||
using Robust.Client.UserInterface.CustomControls;
|
using Robust.Client.UserInterface.CustomControls;
|
||||||
using Robust.Client.UserInterface.XAML;
|
using Robust.Client.UserInterface.XAML;
|
||||||
@@ -27,10 +27,12 @@ public sealed partial class GasThermomachineWindow : DefaultWindow
|
|||||||
if (active)
|
if (active)
|
||||||
{
|
{
|
||||||
ToggleStatusButton.Text = Loc.GetString("comp-gas-thermomachine-ui-status-enabled");
|
ToggleStatusButton.Text = Loc.GetString("comp-gas-thermomachine-ui-status-enabled");
|
||||||
|
ToggleStatusButton.Pressed = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ToggleStatusButton.Text = Loc.GetString("comp-gas-thermomachine-ui-status-disabled");
|
ToggleStatusButton.Text = Loc.GetString("comp-gas-thermomachine-ui-status-disabled");
|
||||||
|
ToggleStatusButton.Pressed = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace Content.Server.Atmos.Piping.Unary.Components
|
|||||||
|
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
[DataField("enabled")]
|
[DataField("enabled")]
|
||||||
public bool Enabled = true;
|
public bool Enabled = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Current maximum temperature, calculated from <see cref="BaseHeatCapacity"/> and the quality of matter
|
/// Current maximum temperature, calculated from <see cref="BaseHeatCapacity"/> and the quality of matter
|
||||||
@@ -92,5 +92,6 @@ namespace Content.Server.Atmos.Piping.Unary.Components
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("machinePartTemperature", customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
|
[DataField("machinePartTemperature", customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
|
||||||
public string MachinePartTemperature = "Laser";
|
public string MachinePartTemperature = "Laser";
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,28 +5,30 @@ using Content.Server.Construction;
|
|||||||
using Content.Server.NodeContainer;
|
using Content.Server.NodeContainer;
|
||||||
using Content.Server.NodeContainer.Nodes;
|
using Content.Server.NodeContainer.Nodes;
|
||||||
using Content.Shared.Atmos;
|
using Content.Shared.Atmos;
|
||||||
using Content.Shared.Atmos.Piping;
|
|
||||||
using Content.Shared.Atmos.Piping.Unary.Components;
|
using Content.Shared.Atmos.Piping.Unary.Components;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using Robust.Server.GameObjects;
|
using Robust.Server.GameObjects;
|
||||||
|
using Content.Server.Power.EntitySystems;
|
||||||
|
using Content.Shared.Examine;
|
||||||
|
|
||||||
namespace Content.Server.Atmos.Piping.Unary.EntitySystems
|
namespace Content.Server.Atmos.Piping.Unary.EntitySystems
|
||||||
{
|
{
|
||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
public sealed class GasThermoMachineSystem : EntitySystem
|
public sealed class GasThermoMachineSystem : EntitySystem
|
||||||
{
|
{
|
||||||
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
|
||||||
[Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;
|
[Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;
|
||||||
[Dependency] private readonly UserInterfaceSystem _userInterfaceSystem = default!;
|
[Dependency] private readonly UserInterfaceSystem _userInterfaceSystem = default!;
|
||||||
|
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
||||||
|
[Dependency] private readonly PowerReceiverSystem _power = default!;
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
|
|
||||||
SubscribeLocalEvent<GasThermoMachineComponent, AtmosDeviceUpdateEvent>(OnThermoMachineUpdated);
|
SubscribeLocalEvent<GasThermoMachineComponent, AtmosDeviceUpdateEvent>(OnThermoMachineUpdated);
|
||||||
SubscribeLocalEvent<GasThermoMachineComponent, AtmosDeviceDisabledEvent>(OnThermoMachineLeaveAtmosphere);
|
|
||||||
SubscribeLocalEvent<GasThermoMachineComponent, RefreshPartsEvent>(OnGasThermoRefreshParts);
|
SubscribeLocalEvent<GasThermoMachineComponent, RefreshPartsEvent>(OnGasThermoRefreshParts);
|
||||||
SubscribeLocalEvent<GasThermoMachineComponent, UpgradeExamineEvent>(OnGasThermoUpgradeExamine);
|
SubscribeLocalEvent<GasThermoMachineComponent, UpgradeExamineEvent>(OnGasThermoUpgradeExamine);
|
||||||
|
SubscribeLocalEvent<GasThermoMachineComponent, ExaminedEvent>(OnExamined);
|
||||||
|
|
||||||
// UI events
|
// UI events
|
||||||
SubscribeLocalEvent<GasThermoMachineComponent, GasThermomachineToggleMessage>(OnToggleMessage);
|
SubscribeLocalEvent<GasThermoMachineComponent, GasThermomachineToggleMessage>(OnToggleMessage);
|
||||||
@@ -35,12 +37,11 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems
|
|||||||
|
|
||||||
private void OnThermoMachineUpdated(EntityUid uid, GasThermoMachineComponent thermoMachine, AtmosDeviceUpdateEvent args)
|
private void OnThermoMachineUpdated(EntityUid uid, GasThermoMachineComponent thermoMachine, AtmosDeviceUpdateEvent args)
|
||||||
{
|
{
|
||||||
if (!thermoMachine.Enabled
|
|
||||||
|| !EntityManager.TryGetComponent(uid, out NodeContainerComponent? nodeContainer)
|
if (!(thermoMachine.Enabled && _power.IsPowered(uid))
|
||||||
|
|| !TryComp(uid, out NodeContainerComponent? nodeContainer)
|
||||||
|| !nodeContainer.TryGetNode(thermoMachine.InletName, out PipeNode? inlet))
|
|| !nodeContainer.TryGetNode(thermoMachine.InletName, out PipeNode? inlet))
|
||||||
{
|
{
|
||||||
DirtyUI(uid, thermoMachine);
|
|
||||||
_appearance.SetData(uid, ThermoMachineVisuals.Enabled, false);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,82 +50,90 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems
|
|||||||
|
|
||||||
if (!MathHelper.CloseTo(combinedHeatCapacity, 0, 0.001f))
|
if (!MathHelper.CloseTo(combinedHeatCapacity, 0, 0.001f))
|
||||||
{
|
{
|
||||||
_appearance.SetData(uid, ThermoMachineVisuals.Enabled, true);
|
|
||||||
var combinedEnergy = thermoMachine.HeatCapacity * thermoMachine.TargetTemperature + airHeatCapacity * inlet.Air.Temperature;
|
var combinedEnergy = thermoMachine.HeatCapacity * thermoMachine.TargetTemperature + airHeatCapacity * inlet.Air.Temperature;
|
||||||
inlet.Air.Temperature = combinedEnergy / combinedHeatCapacity;
|
inlet.Air.Temperature = combinedEnergy / combinedHeatCapacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO ATMOS: Active power usage.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnThermoMachineLeaveAtmosphere(EntityUid uid, GasThermoMachineComponent component, AtmosDeviceDisabledEvent args)
|
private void OnGasThermoRefreshParts(EntityUid uid, GasThermoMachineComponent thermoMachine, RefreshPartsEvent args)
|
||||||
{
|
{
|
||||||
_appearance.SetData(uid, ThermoMachineVisuals.Enabled, false);
|
var matterBinRating = args.PartRatings[thermoMachine.MachinePartHeatCapacity];
|
||||||
|
var laserRating = args.PartRatings[thermoMachine.MachinePartTemperature];
|
||||||
|
|
||||||
DirtyUI(uid, component);
|
thermoMachine.HeatCapacity = thermoMachine.BaseHeatCapacity * MathF.Pow(matterBinRating, 2);
|
||||||
}
|
|
||||||
|
|
||||||
private void OnGasThermoRefreshParts(EntityUid uid, GasThermoMachineComponent component, RefreshPartsEvent args)
|
switch (thermoMachine.Mode)
|
||||||
{
|
|
||||||
var matterBinRating = args.PartRatings[component.MachinePartHeatCapacity];
|
|
||||||
var laserRating = args.PartRatings[component.MachinePartTemperature];
|
|
||||||
|
|
||||||
component.HeatCapacity = component.BaseHeatCapacity * MathF.Pow(matterBinRating, 2);
|
|
||||||
|
|
||||||
switch (component.Mode)
|
|
||||||
{
|
{
|
||||||
// 593.15K with stock parts.
|
// 593.15K with stock parts.
|
||||||
case ThermoMachineMode.Heater:
|
case ThermoMachineMode.Heater:
|
||||||
component.MaxTemperature = component.BaseMaxTemperature + component.MaxTemperatureDelta * laserRating;
|
thermoMachine.MaxTemperature = thermoMachine.BaseMaxTemperature + thermoMachine.MaxTemperatureDelta * laserRating;
|
||||||
component.MinTemperature = Atmospherics.T20C;
|
thermoMachine.MinTemperature = Atmospherics.T20C;
|
||||||
break;
|
break;
|
||||||
// 73.15K with stock parts.
|
// 73.15K with stock parts.
|
||||||
case ThermoMachineMode.Freezer:
|
case ThermoMachineMode.Freezer:
|
||||||
component.MinTemperature = MathF.Max(
|
thermoMachine.MinTemperature = MathF.Max(
|
||||||
component.BaseMinTemperature - component.MinTemperatureDelta * laserRating, Atmospherics.TCMB);
|
thermoMachine.BaseMinTemperature - thermoMachine.MinTemperatureDelta * laserRating, Atmospherics.TCMB);
|
||||||
component.MaxTemperature = Atmospherics.T20C;
|
thermoMachine.MaxTemperature = Atmospherics.T20C;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
DirtyUI(uid, component);
|
DirtyUI(uid, thermoMachine);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnGasThermoUpgradeExamine(EntityUid uid, GasThermoMachineComponent component, UpgradeExamineEvent args)
|
private void OnGasThermoUpgradeExamine(EntityUid uid, GasThermoMachineComponent thermoMachine, UpgradeExamineEvent args)
|
||||||
{
|
{
|
||||||
switch (component.Mode)
|
switch (thermoMachine.Mode)
|
||||||
{
|
{
|
||||||
case ThermoMachineMode.Heater:
|
case ThermoMachineMode.Heater:
|
||||||
args.AddPercentageUpgrade("gas-thermo-component-upgrade-heating", component.MaxTemperature / (component.BaseMaxTemperature + component.MaxTemperatureDelta));
|
args.AddPercentageUpgrade("gas-thermo-component-upgrade-heating", thermoMachine.MaxTemperature / (thermoMachine.BaseMaxTemperature + thermoMachine.MaxTemperatureDelta));
|
||||||
break;
|
break;
|
||||||
case ThermoMachineMode.Freezer:
|
case ThermoMachineMode.Freezer:
|
||||||
args.AddPercentageUpgrade("gas-thermo-component-upgrade-cooling", component.MinTemperature / (component.BaseMinTemperature - component.MinTemperatureDelta));
|
args.AddPercentageUpgrade("gas-thermo-component-upgrade-cooling", thermoMachine.MinTemperature / (thermoMachine.BaseMinTemperature - thermoMachine.MinTemperatureDelta));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
args.AddPercentageUpgrade("gas-thermo-component-upgrade-heat-capacity", component.HeatCapacity / component.BaseHeatCapacity);
|
args.AddPercentageUpgrade("gas-thermo-component-upgrade-heat-capacity", thermoMachine.HeatCapacity / thermoMachine.BaseHeatCapacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnToggleMessage(EntityUid uid, GasThermoMachineComponent component, GasThermomachineToggleMessage args)
|
private void OnToggleMessage(EntityUid uid, GasThermoMachineComponent thermoMachine, GasThermomachineToggleMessage args)
|
||||||
{
|
{
|
||||||
component.Enabled = !component.Enabled;
|
SetEnabled(uid, thermoMachine, _power.TogglePower(uid));
|
||||||
|
DirtyUI(uid, thermoMachine);
|
||||||
DirtyUI(uid, component);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnChangeTemperature(EntityUid uid, GasThermoMachineComponent component, GasThermomachineChangeTemperatureMessage args)
|
private void OnChangeTemperature(EntityUid uid, GasThermoMachineComponent thermoMachine, GasThermomachineChangeTemperatureMessage args)
|
||||||
{
|
{
|
||||||
component.TargetTemperature =
|
thermoMachine.TargetTemperature =
|
||||||
Math.Clamp(args.Temperature, component.MinTemperature, component.MaxTemperature);
|
Math.Clamp(args.Temperature, thermoMachine.MinTemperature, thermoMachine.MaxTemperature);
|
||||||
|
|
||||||
DirtyUI(uid, component);
|
DirtyUI(uid, thermoMachine);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DirtyUI(EntityUid uid, GasThermoMachineComponent? thermo, ServerUserInterfaceComponent? ui=null)
|
private void DirtyUI(EntityUid uid, GasThermoMachineComponent? thermoMachine, ServerUserInterfaceComponent? ui=null)
|
||||||
{
|
{
|
||||||
if (!Resolve(uid, ref thermo, ref ui, false))
|
if (!Resolve(uid, ref thermoMachine, ref ui, false))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_userInterfaceSystem.TrySetUiState(uid, ThermomachineUiKey.Key,
|
_userInterfaceSystem.TrySetUiState(uid, ThermomachineUiKey.Key,
|
||||||
new GasThermomachineBoundUserInterfaceState(thermo.MinTemperature, thermo.MaxTemperature, thermo.TargetTemperature, thermo.Enabled, thermo.Mode), null, ui);
|
new GasThermomachineBoundUserInterfaceState(thermoMachine.MinTemperature, thermoMachine.MaxTemperature, thermoMachine.TargetTemperature, thermoMachine.Enabled, thermoMachine.Mode), null, ui);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetEnabled(EntityUid uid, GasThermoMachineComponent thermoMachine, bool enabled)
|
||||||
|
{
|
||||||
|
thermoMachine.Enabled = enabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnExamined(EntityUid uid, GasThermoMachineComponent thermoMachine, ExaminedEvent args)
|
||||||
|
{
|
||||||
|
if (!args.IsInDetailsRange)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (Loc.TryGetString("gas-thermomachine-system-examined", out var str,
|
||||||
|
("machineName", thermoMachine.Mode == ThermoMachineMode.Freezer ? "freezer" : "heater"),
|
||||||
|
("tempColor", thermoMachine.Mode == ThermoMachineMode.Freezer ? "deepskyblue" : "red"),
|
||||||
|
("temp", Math.Round(thermoMachine.TargetTemperature,2))
|
||||||
|
))
|
||||||
|
|
||||||
|
args.PushMarkup(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,12 +20,6 @@ namespace Content.Shared.Atmos.Piping
|
|||||||
Enabled,
|
Enabled,
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable, NetSerializable]
|
|
||||||
public enum ThermoMachineVisuals : byte
|
|
||||||
{
|
|
||||||
Enabled,
|
|
||||||
}
|
|
||||||
|
|
||||||
[Serializable, NetSerializable]
|
[Serializable, NetSerializable]
|
||||||
public enum PumpVisuals : byte
|
public enum PumpVisuals : byte
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# Examine Text
|
||||||
|
gas-thermomachine-system-examined = The {$machineName} thermostat is set to [color={$tempColor}]{$temp} °C[/color].
|
||||||
@@ -405,7 +405,7 @@
|
|||||||
description: technologies-advanced-atmospherics-technology-description
|
description: technologies-advanced-atmospherics-technology-description
|
||||||
icon:
|
icon:
|
||||||
sprite: Structures/Piping/Atmospherics/thermomachine.rsi
|
sprite: Structures/Piping/Atmospherics/thermomachine.rsi
|
||||||
state: freezer_off
|
state: freezerOff
|
||||||
requiredPoints: 7500
|
requiredPoints: 7500
|
||||||
requiredTechnologies:
|
requiredTechnologies:
|
||||||
- ElectricalEngineering
|
- ElectricalEngineering
|
||||||
|
|||||||
@@ -247,6 +247,7 @@
|
|||||||
- type: Wires
|
- type: Wires
|
||||||
BoardName: "Thermomachine"
|
BoardName: "Thermomachine"
|
||||||
LayoutId: Thermomachine
|
LayoutId: Thermomachine
|
||||||
|
- type: WiresVisuals
|
||||||
- type: NodeContainer
|
- type: NodeContainer
|
||||||
nodes:
|
nodes:
|
||||||
pipe:
|
pipe:
|
||||||
@@ -268,21 +269,35 @@
|
|||||||
components:
|
components:
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
layers:
|
layers:
|
||||||
- state: freezer_off
|
- state: freezerOff
|
||||||
map: [ "enabled" ]
|
map: [ "enum.PowerDeviceVisualLayers.Powered" ]
|
||||||
|
- state: freezerPanelOpen
|
||||||
|
map: [ "enum.WiresVisualLayers.MaintenancePanel" ]
|
||||||
- state: pipe
|
- state: pipe
|
||||||
map: [ "enum.PipeVisualLayers.Pipe" ]
|
map: [ "enum.PipeVisualLayers.Pipe" ]
|
||||||
- type: GenericVisualizer
|
- type: GenericVisualizer
|
||||||
visuals:
|
visuals:
|
||||||
enum.ThermoMachineVisuals.Enabled:
|
enum.PowerDeviceVisuals.Powered:
|
||||||
enabled:
|
enum.PowerDeviceVisualLayers.Powered:
|
||||||
True: { state: freezer_on }
|
True: { state: freezerOn }
|
||||||
False: { state: freezer_off }
|
False: { state: freezerOff }
|
||||||
- type: GasThermoMachine
|
- type: GasThermoMachine
|
||||||
mode: Freezer
|
mode: Freezer
|
||||||
|
- type: ApcPowerReceiver
|
||||||
|
powerDisabled: true #starts off
|
||||||
- type: Machine
|
- type: Machine
|
||||||
board: ThermomachineFreezerMachineCircuitBoard
|
board: ThermomachineFreezerMachineCircuitBoard
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
parent: GasThermoMachineFreezer
|
||||||
|
id: GasThermoMachineFreezerEnabled
|
||||||
|
suffix: Enabled
|
||||||
|
components:
|
||||||
|
- type: GasThermoMachine
|
||||||
|
enabled: true
|
||||||
|
- type: ApcPowerReceiver
|
||||||
|
powerDisabled: false
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseGasThermoMachine
|
parent: BaseGasThermoMachine
|
||||||
id: GasThermoMachineHeater
|
id: GasThermoMachineHeater
|
||||||
@@ -293,17 +308,31 @@
|
|||||||
components:
|
components:
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
layers:
|
layers:
|
||||||
- state: heater_off
|
- state: heaterOff
|
||||||
map: [ "enabled" ]
|
map: [ "enum.PowerDeviceVisualLayers.Powered" ]
|
||||||
|
- state: heaterPanelOpen
|
||||||
|
map: ["enum.WiresVisualLayers.MaintenancePanel"]
|
||||||
- state: pipe
|
- state: pipe
|
||||||
map: [ "enum.PipeVisualLayers.Pipe" ]
|
map: [ "enum.PipeVisualLayers.Pipe" ]
|
||||||
- type: GenericVisualizer
|
- type: GenericVisualizer
|
||||||
visuals:
|
visuals:
|
||||||
enum.ThermoMachineVisuals.Enabled:
|
enum.PowerDeviceVisuals.Powered:
|
||||||
enabled:
|
enum.PowerDeviceVisualLayers.Powered:
|
||||||
True: { state: heater_on }
|
True: { state: heaterOn }
|
||||||
False: { state: heater_off }
|
False: { state: heaterOff }
|
||||||
- type: GasThermoMachine
|
- type: GasThermoMachine
|
||||||
mode: Heater
|
mode: Heater
|
||||||
|
- type: ApcPowerReceiver
|
||||||
|
powerDisabled: true #starts off
|
||||||
- type: Machine
|
- type: Machine
|
||||||
board: ThermomachineHeaterMachineCircuitBoard
|
board: ThermomachineHeaterMachineCircuitBoard
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
parent: GasThermoMachineHeater
|
||||||
|
id: GasThermoMachineHeaterEnabled
|
||||||
|
suffix: Enabled
|
||||||
|
components:
|
||||||
|
- type: GasThermoMachine
|
||||||
|
enabled: true
|
||||||
|
- type: ApcPowerReceiver
|
||||||
|
powerDisabled: false
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 280 B |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 227 B |
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -1 +1,38 @@
|
|||||||
{"version":1,"size":{"x":32,"y":32},"copyright":"Taken from tgstation","license":"CC-BY-SA-3.0","states":[{"name":"freezer_off"},{"name":"freezer_open"},{"name":"freezer_on","directions":1,"delays":[[0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1]]},{"name":"heater_off"},{"name":"heater_open"},{"name":"heater_on","directions":1,"delays":[[0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1]]},{"name":"pipe","directions":4}]}
|
{
|
||||||
|
"version":1,
|
||||||
|
"size":{"x":32,"y":32},
|
||||||
|
"copyright":"Base sprites taken from tgstation, splitted to display on two layers (machinebody/panel) by Menshin, for SS14",
|
||||||
|
"license":"CC-BY-SA-3.0",
|
||||||
|
"states":[
|
||||||
|
{
|
||||||
|
"name":"freezerOff",
|
||||||
|
"directions":1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"freezerPanelOpen",
|
||||||
|
"directions":1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"freezerOn",
|
||||||
|
"directions":1,
|
||||||
|
"delays":[ [ 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1] ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"heaterOff",
|
||||||
|
"directions":1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"heaterPanelOpen",
|
||||||
|
"directions":1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"heaterOn",
|
||||||
|
"directions":1,
|
||||||
|
"delays":[ [ 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1] ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name":"pipe",
|
||||||
|
"directions":4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||