Class MarkingManager
Inheritance
System.Object
MarkingManager
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
|
Improve this Doc
View Source
Markings
Declaration
public IReadOnlyDictionary<string, MarkingPrototype> Markings { get; }
Property Value
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
|
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
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MarkingsByCategory(MarkingCategories)
Declaration
public IReadOnlyDictionary<string, MarkingPrototype> MarkingsByCategory(MarkingCategories category)
Parameters
Returns
|
Improve this Doc
View Source
MarkingsByCategoryAndSex(MarkingCategories, Sex)
Markings by category and sex.
Declaration
public IReadOnlyDictionary<string, MarkingPrototype> MarkingsByCategoryAndSex(MarkingCategories category, Sex sex)
Parameters
Returns
Remarks
|
Improve this Doc
View Source
MarkingsByCategoryAndSpecies(MarkingCategories, String)
Markings by category and species.
Declaration
public IReadOnlyDictionary<string, MarkingPrototype> MarkingsByCategoryAndSpecies(MarkingCategories category, string species)
Parameters
Returns
Remarks
|
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
Returns
Remarks
|
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
Returns
Type |
Description |
System.Boolean |
|