Upstream species (#6066)
* Step 1 of porting; grabbed most of the files via patches. * Add species field to the DB * Appearance patches for slimes. * Fix the db test. * Add slime's biocompat. * slimby * Fixes, allow specifying if a species is playable or not. * Update Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs Co-authored-by: Javier Guardia Fernández <DrSmugleaf@users.noreply.github.com> * Update Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs Co-authored-by: Javier Guardia Fernández <DrSmugleaf@users.noreply.github.com> * Update Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs Co-authored-by: Javier Guardia Fernández <DrSmugleaf@users.noreply.github.com> * Address reviews. * Address reviews. * make an if-case. * Fix a goof where species wouldn't get shown in the editor correctly (it'd always default to human) Co-authored-by: Javier Guardia Fernández <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
6
Content.Shared/Species/SpeciesManager.cs
Normal file
6
Content.Shared/Species/SpeciesManager.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Content.Shared.Species;
|
||||
|
||||
public class SpeciesManager
|
||||
{
|
||||
public const string DefaultSpecies = "Human";
|
||||
}
|
||||
53
Content.Shared/Species/SpeciesPrototype.cs
Normal file
53
Content.Shared/Species/SpeciesPrototype.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Species;
|
||||
|
||||
[Prototype("species")]
|
||||
public class SpeciesPrototype : IPrototype
|
||||
{
|
||||
/// <summary>
|
||||
/// Prototype ID of the species.
|
||||
/// </summary>
|
||||
[DataField("id", required: true)]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// User visible name of the species.
|
||||
/// </summary>
|
||||
[DataField("name", required: true)]
|
||||
public string Name { get; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the species is available "at round start" (In the character editor)
|
||||
/// </summary>
|
||||
[DataField("roundStart", required: true)]
|
||||
public bool RoundStart { get; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Prototype used by the species as a body.
|
||||
/// </summary>
|
||||
[DataField("prototype", required: true)]
|
||||
public string Prototype { get; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Prototype used by the species for the dress-up doll in various menus.
|
||||
/// </summary>
|
||||
[DataField("dollPrototype", required: true)]
|
||||
public string DollPrototype { get; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Method of skin coloration used by the species.
|
||||
/// </summary>
|
||||
[DataField("skinColoration", required: true)]
|
||||
public SpeciesSkinColor SkinColoration { get; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public enum SpeciesSkinColor
|
||||
{
|
||||
HumanToned,
|
||||
Hues,
|
||||
}
|
||||
Reference in New Issue
Block a user