Class KerbalVarietySystem
- Namespace
- KSP.Game
- Assembly
- Assembly-CSharp.dll
public class KerbalVarietySystem
- Inheritance
-
KerbalVarietySystem
- Inherited Members
-
- Extension Methods
-
Constructors
KerbalVarietySystem(KerbalRosterManager)
public KerbalVarietySystem(KerbalRosterManager manager)
Parameters
manager KerbalRosterManager
Fields
BUNDLELABEL_KERBAL_VARIETY
public const string BUNDLELABEL_KERBAL_VARIETY = "kerbal_variety"
Field Value
- string
DEFAULT_ATTRIBUTE_SET_NAME
public const string DEFAULT_ATTRIBUTE_SET_NAME = "KERBALATTRIBUTES_EVA"
Field Value
- string
FEMALE_TAG
public const string FEMALE_TAG = "_F_"
Field Value
- string
KERBAL_ORIGIN_TYPE_ATTRIBUTE_NAME
public const string KERBAL_ORIGIN_TYPE_ATTRIBUTE_NAME = "ORIGINTYPE"
Field Value
- string
MALE_TAG
public const string MALE_TAG = "_M_"
Field Value
- string
MPGlobalNameRandomizer
public static MPRandom MPGlobalNameRandomizer
Field Value
- MPRandom
NEUTRAL_TAG
public const string NEUTRAL_TAG = "_N_"
Field Value
- string
Methods
AllAssetsLoaded()
public bool AllAssetsLoaded()
Returns
- bool
GenerateAttributeSeed(string, string)
public static int GenerateAttributeSeed(string fullName, string attributeName)
Parameters
fullName string
attributeName string
Returns
- int
GenerateCustomKerbalAttributesFromRawData(Dictionary<string, object>, ref KerbalAttributes, string)
public void GenerateCustomKerbalAttributesFromRawData(Dictionary<string, object> rawCustomKerbalData, ref KerbalAttributes kerbalAttributes, string attributeSetName = "KERBALATTRIBUTES_EVA")
Parameters
rawCustomKerbalData Dictionary<string, object>
kerbalAttributes KerbalAttributes
attributeSetName string
GenerateNameAttributes()
public KerbalAttributes GenerateNameAttributes()
Returns
- KerbalAttributes
GenerateNameAttributes(string)
public KerbalAttributes GenerateNameAttributes(string firstName)
Parameters
firstName string
Returns
- KerbalAttributes
GenerateUnsafeAttributeSeed(string, string)
public int GenerateUnsafeAttributeSeed(string fullName, string attributeName)
Parameters
fullName string
attributeName string
Returns
- int
GetAllPredefinedKerbalKeysFromOrigin(KerbalOriginType)
public List<string> GetAllPredefinedKerbalKeysFromOrigin(KerbalOriginType originType)
Parameters
originType KerbalOriginType
Returns
- List<string>
GetAttributeRuleSet(string)
public Dictionary<string, KerbalVarietyAttributeRule> GetAttributeRuleSet(string attributeSet)
Parameters
attributeSet string
Returns
- Dictionary<string, KerbalVarietyAttributeRule>
GetBiographySubgroup(string)
public List<string> GetBiographySubgroup(string subsetName)
Parameters
subsetName string
Returns
- List<string>
GetRangeRuleByName(string)
public VarietyRangeRule? GetRangeRuleByName(string ruleName)
Parameters
ruleName string
Returns
- VarietyRangeRule?
GetSeededRandomizer(string, string, string)
public static MPRandom GetSeededRandomizer(string firstName, string surname, string attributeName)
Parameters
firstName string
surname string
attributeName string
Returns
- MPRandom
GetVarietySubCategoryByRangeRule(VarietyRangeRule)
public IList GetVarietySubCategoryByRangeRule(VarietyRangeRule rangeRule)
Parameters
rangeRule VarietyRangeRule
Returns
- IList
IsKerbalDevCaricature(string)
public bool IsKerbalDevCaricature(string kerbalNameToCheck)
Parameters
kerbalNameToCheck string
Returns
- bool
IsKerbalForQA(string)
public bool IsKerbalForQA(string kerbalNameToCheck)
Parameters
kerbalNameToCheck string
Returns
- bool
IsKerbalFromOrigin(string, KerbalOriginType)
public bool IsKerbalFromOrigin(string kerbalNameToCheck, KerbalOriginType origin)
Parameters
kerbalNameToCheck string
origin KerbalOriginType
Returns
- bool
IsKerbalPredefined(string)
public bool IsKerbalPredefined(string nameKey)
Parameters
nameKey string
Returns
- bool
PreMakeAllAttributeChoices(ref KerbalAttributes)
public void PreMakeAllAttributeChoices(ref KerbalAttributes kerbalAttributes)
Parameters
kerbalAttributes KerbalAttributes
PreMakeAllAttributeChoices(Dictionary<string, KerbalVarietyAttributeRule>, ref KerbalAttributes)
public void PreMakeAllAttributeChoices(Dictionary<string, KerbalVarietyAttributeRule> attributeRules, ref KerbalAttributes kerbalAttributes)
Parameters
attributeRules Dictionary<string, KerbalVarietyAttributeRule>
kerbalAttributes KerbalAttributes
TryCreateCustomKerbalByName(string, out KerbalAttributes, string)
public bool TryCreateCustomKerbalByName(string customKerbalName, out KerbalAttributes kerbalAttributes, string attributeSetName = "KERBALATTRIBUTES_EVA")
Parameters
customKerbalName string
kerbalAttributes KerbalAttributes
attributeSetName string
Returns
- bool
TryGetColorFromString(string, out Color)
public static bool TryGetColorFromString(string potentialColorAsString, out Color outputColor)
Parameters
potentialColorAsString string
outputColor Color
Returns
- bool
TryGetUnusedNameAttributes(out KerbalAttributes)
public bool TryGetUnusedNameAttributes(out KerbalAttributes newAttributes)
Parameters
newAttributes KerbalAttributes
Returns
- bool