move hot plate item placement stuff into its own system (#18923)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-08-20 01:37:19 +01:00
committed by GitHub
parent f25813a098
commit 00bae110e1
9 changed files with 160 additions and 124 deletions

View File

@@ -1,5 +1,3 @@
using Content.Shared.Whitelist;
namespace Content.Server.Chemistry.Components;
[RegisterComponent]
@@ -28,23 +26,4 @@ public sealed class SolutionHeaterComponent : Component
/// </summary>
[DataField("partRatingHeatMultiplier")]
public float PartRatingHeatMultiplier = 1.5f;
/// <summary>
/// The entities that are placed on the heater.
/// <summary>
[DataField("placedEntities")]
public HashSet<EntityUid> PlacedEntities = new();
/// <summary>
/// The max amount of entities that can be heated at the same time.
/// </summary>
[DataField("maxEntities")]
public uint MaxEntities = 1;
/// <summary>
/// Whitelist for entities that can be placed on the heater.
/// </summary>
[DataField("whitelist")]
[ViewVariables(VVAccess.ReadWrite)]
public EntityWhitelist? Whitelist;
}