Show / Hide Table of Contents

Class MarkingManager

Inheritance
System.Object
MarkingManager
Namespace: Content.Shared.Humanoid.Markings
Assembly: Content.Shared.dll
Syntax
public sealed class MarkingManager : object

Properties

| Improve this Doc View Source

CategorizedMarkings

Declaration
public IReadOnlyDictionary<MarkingCategories, Dictionary<string, MarkingPrototype>> CategorizedMarkings { get; }
Property Value
Type Description
IReadOnlyDictionary<MarkingCategories, Dictionary<System.String, MarkingPrototype>>
| Improve this Doc View Source

Markings

Declaration
public IReadOnlyDictionary<string, MarkingPrototype> Markings { get; }
Property Value
Type Description
IReadOnlyDictionary<System.String, MarkingPrototype>

Methods

| Improve this Doc View Source

CanBeApplied(String, Sex, Marking, IPrototypeManager)

Declaration
public bool CanBeApplied(string species, Sex sex, Marking marking, IPrototypeManager prototypeManager = null)
Parameters
Type Name Description
System.String species
Sex sex
Marking marking
Robust.Shared.Prototypes.IPrototypeManager prototypeManager
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanBeApplied(String, Sex, MarkingPrototype, IPrototypeManager)

Declaration
public bool CanBeApplied(string species, Sex sex, MarkingPrototype prototype, IPrototypeManager prototypeManager = null)
Parameters
Type Name Description
System.String species
Sex sex
MarkingPrototype prototype
Robust.Shared.Prototypes.IPrototypeManager prototypeManager
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Initialize()

Declaration
public void Initialize()
| Improve this Doc View Source

IsValidMarking(Marking, MarkingCategories, String, Sex)

Check if a marking is valid according to the category, species, and current data this marking has.

Declaration
public bool IsValidMarking(Marking marking, MarkingCategories category, string species, Sex sex)
Parameters
Type Name Description
Marking marking
MarkingCategories category
System.String species
Sex sex
Returns
Type Description
System.Boolean
| Improve this Doc View Source

MarkingsByCategory(MarkingCategories)

Declaration
public IReadOnlyDictionary<string, MarkingPrototype> MarkingsByCategory(MarkingCategories category)
Parameters
Type Name Description
MarkingCategories category
Returns
Type Description
IReadOnlyDictionary<System.String, MarkingPrototype>
| Improve this Doc View Source

MarkingsByCategoryAndSex(MarkingCategories, Sex)

Markings by category and sex.

Declaration
public IReadOnlyDictionary<string, MarkingPrototype> MarkingsByCategoryAndSex(MarkingCategories category, Sex sex)
Parameters
Type Name Description
MarkingCategories category
Sex sex
Returns
Type Description
IReadOnlyDictionary<System.String, MarkingPrototype>
Remarks

This is done per category, as enumerating over every single marking by species isn't useful. Please make a pull request if you find a use case for that behavior.

| Improve this Doc View Source

MarkingsByCategoryAndSpecies(MarkingCategories, String)

Markings by category and species.

Declaration
public IReadOnlyDictionary<string, MarkingPrototype> MarkingsByCategoryAndSpecies(MarkingCategories category, string species)
Parameters
Type Name Description
MarkingCategories category
System.String species
Returns
Type Description
IReadOnlyDictionary<System.String, MarkingPrototype>
Remarks

This is done per category, as enumerating over every single marking by species isn't useful. Please make a pull request if you find a use case for that behavior.

| Improve this Doc View Source

MarkingsByCategoryAndSpeciesAndSex(MarkingCategories, String, Sex)

Markings by category, species and sex.

Declaration
public IReadOnlyDictionary<string, MarkingPrototype> MarkingsByCategoryAndSpeciesAndSex(MarkingCategories category, string species, Sex sex)
Parameters
Type Name Description
MarkingCategories category
System.String species
Sex sex
Returns
Type Description
IReadOnlyDictionary<System.String, MarkingPrototype>
Remarks

This is done per category, as enumerating over every single marking by species isn't useful. Please make a pull request if you find a use case for that behavior.

| Improve this Doc View Source

MustMatchSkin(String, HumanoidVisualLayers, out Single, IPrototypeManager)

Declaration
public bool MustMatchSkin(string species, HumanoidVisualLayers layer, out float alpha, IPrototypeManager prototypeManager = null)
Parameters
Type Name Description
System.String species
HumanoidVisualLayers layer
System.Single alpha
Robust.Shared.Prototypes.IPrototypeManager prototypeManager
Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryGetMarking(Marking, out MarkingPrototype)

Declaration
public bool TryGetMarking(Marking marking, out MarkingPrototype markingResult)
Parameters
Type Name Description
Marking marking
MarkingPrototype markingResult
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾