Clothing/item ECS & cleanup (#9706)
This commit is contained in:
@@ -1,22 +1,13 @@
|
||||
using Content.Shared.Clothing.Components;
|
||||
using Content.Shared.Item;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Server.Clothing.Components
|
||||
{
|
||||
// Needed for client-side clothing component.
|
||||
[RegisterComponent]
|
||||
[ComponentReference(typeof(SharedItemComponent))]
|
||||
[Virtual]
|
||||
public class ItemComponent : SharedItemComponent{}
|
||||
|
||||
[RegisterComponent]
|
||||
[NetworkedComponent]
|
||||
[ComponentReference(typeof(SharedItemComponent))]
|
||||
public sealed class ClothingComponent : ItemComponent
|
||||
[ComponentReference(typeof(SharedClothingComponent))]
|
||||
public sealed class ClothingComponent : SharedClothingComponent
|
||||
{
|
||||
[DataField("HeatResistance")]
|
||||
private int _heatResistance = 323;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public int HeatResistance => _heatResistance;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace Content.Server.Clothing.Components;
|
||||
|
||||
/// <summary>
|
||||
/// TODO this needs removed somehow.
|
||||
/// Handles 'heat resistance' for gloves touching bulbs and that's it, ick.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class GloveHeatResistanceComponent : Component
|
||||
{
|
||||
[DataField("heatResistance")]
|
||||
public int HeatResistance = 323;
|
||||
}
|
||||
Reference in New Issue
Block a user