using System.Collections.Generic;
using Content.Shared.Body.Part;
using Content.Shared.Body.Preset;
using Robust.Shared.ViewVariables;
namespace Content.Server.Body
{
///
/// Stores data on what should
/// fill a BodyTemplate.
/// Used for loading complete body presets, like a "basic human" with all
/// human limbs.
///
public class BodyPreset
{
public BodyPreset(BodyPresetPrototype data)
{
LoadFromPrototype(data);
}
[ViewVariables] public string Name { get; private set; }
///
/// Maps a template slot to the ID of the that should
/// fill it. E.g. "right arm" : "BodyPart.arm.basic_human".
///
[ViewVariables]
public Dictionary PartIDs { get; private set; }
protected virtual void LoadFromPrototype(BodyPresetPrototype data)
{
Name = data.Name;
PartIDs = data.PartIDs;
}
}
}