Markings tweaks (#8394)
* fixes issue with indexing into colors on multi-sprite markings * should rebuild the dummy upon character profile switch in client * markings, when selected, should now default to the current character's skin color * whoops, missed one * adds a type serializer into marking points * that has to be a list serializer, oops
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Content.Shared.CharacterAppearance;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
|
||||
namespace Content.Shared.Markings
|
||||
{
|
||||
@@ -32,7 +34,7 @@ namespace Content.Shared.Markings
|
||||
[DataField("required", required: true)]
|
||||
public bool Required = false;
|
||||
// Default markings for this layer.
|
||||
[DataField("defaultMarkings")]
|
||||
[DataField("defaultMarkings", customTypeSerializer:typeof(PrototypeIdListSerializer<MarkingPrototype>))]
|
||||
public List<string> DefaultMarkings = new();
|
||||
|
||||
public static Dictionary<MarkingCategories, MarkingPoints> CloneMarkingPointDictionary(Dictionary<MarkingCategories, MarkingPoints> self)
|
||||
|
||||
Reference in New Issue
Block a user