Initial mockup of the Reptilian species (#6973)

Co-authored-by: ZeroDayDaemon <60460608+ZeroDayDaemon@users.noreply.github.com>
This commit is contained in:
metalgearsloth
2022-03-10 15:05:07 +11:00
committed by GitHub
parent 336318d452
commit 92ff81b6c9
43 changed files with 424 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using Content.Shared.Body.Components;
using Robust.Shared.Serialization;
@@ -16,6 +16,7 @@ namespace Content.Shared.Body.Part
Arm,
Hand,
Leg,
Foot
Foot,
Tail
}
}

View File

@@ -5,10 +5,14 @@ namespace Content.Shared.CharacterAppearance
[Serializable, NetSerializable]
public enum HumanoidVisualLayers : byte
{
TailBehind,
Hair,
FacialHair,
Chest,
Head,
Snout,
Frills,
Horns,
Eyes,
RArm,
LArm,
@@ -18,6 +22,7 @@ namespace Content.Shared.CharacterAppearance
LLeg,
RFoot,
LFoot,
TailFront,
Handcuffs,
StencilMask,
Fire,

View File

@@ -16,8 +16,15 @@ namespace Content.Shared.CharacterAppearance
case BodyPartType.Torso:
yield return HumanoidVisualLayers.Chest;
break;
case BodyPartType.Tail:
yield return HumanoidVisualLayers.TailFront;
yield return HumanoidVisualLayers.TailBehind;
break;
case BodyPartType.Head:
yield return HumanoidVisualLayers.Head;
yield return HumanoidVisualLayers.Snout;
yield return HumanoidVisualLayers.Frills;
yield return HumanoidVisualLayers.Horns;
yield return HumanoidVisualLayers.Eyes;
yield return HumanoidVisualLayers.FacialHair;
yield return HumanoidVisualLayers.Hair;

View File

@@ -1,5 +1,6 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.ViewVariables;
namespace Content.Shared.Species;
@@ -28,13 +29,13 @@ public sealed class SpeciesPrototype : IPrototype
/// <summary>
/// Prototype used by the species as a body.
/// </summary>
[DataField("prototype", required: true)]
[DataField("prototype", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
public string Prototype { get; } = default!;
/// <summary>
/// Prototype used by the species for the dress-up doll in various menus.
/// </summary>
[DataField("dollPrototype", required: true)]
[DataField("dollPrototype", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
public string DollPrototype { get; } = default!;
/// <summary>