mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-04 05:17:28 +00:00
* initial visual nubody * oops overlay * im so pheeming rn * conversion... * tests * comeback of the underwear * oops eyes * blabbl * zeds * yaml linted * search and visible count constraints * reordering * preserve previously selected markings colors * fix test * some ui niceties * ordering * make DB changes backwards-compatible/downgrade-friendly * fix things again * fix migration * vulpkanin markings limit increase * wrapping * code cleanup and more code cleanup and more code cleanup and more code cleanup and * fix slop ports * better sampling API * make filter work + use the method i made for its intended purpose * fix test fails real quick * magic mirror cleanup, remove TODO * don't 0-init the organ profile data * remove deltastates --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> # Conflicts: # Content.Server/Humanoid/Components/RandomHumanoidAppearanceComponent.cs # Content.Server/Humanoid/Systems/RandomHumanoidAppearanceSystem.cs # Conflicts: # Resources/Prototypes/Species/diona.yml # Conflicts: # Content.Server/Zombies/ZombieSystem.Transform.cs
53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
using Content.Shared.Humanoid;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Body;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
|
|
[Access(typeof(SharedVisualBodySystem))]
|
|
public sealed partial class VisualOrganComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The layer on the entity that this contributes to
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public Enum Layer;
|
|
|
|
/// <summary>
|
|
/// The data for the layer
|
|
/// </summary>
|
|
[DataField(required: true), AutoNetworkedField, AlwaysPushInheritance]
|
|
public PrototypeLayerData Data;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public OrganProfileData Profile = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Defines the coloration, sex, etc. of organs
|
|
/// </summary>
|
|
[DataDefinition]
|
|
[Serializable, NetSerializable]
|
|
public partial record struct OrganProfileData
|
|
{
|
|
/// <summary>
|
|
/// The "sex" of this organ
|
|
/// </summary>
|
|
[DataField]
|
|
public Sex Sex;
|
|
|
|
/// <summary>
|
|
/// The "eye color" of this organ
|
|
/// </summary>
|
|
[DataField]
|
|
public Color EyeColor = Color.White;
|
|
|
|
/// <summary>
|
|
/// The "skin color" of this organ
|
|
/// </summary>
|
|
[DataField]
|
|
public Color SkinColor = Color.White;
|
|
}
|
|
|