Struct KerbalAttributes
- Namespace
- KSP.Game
- Assembly
- Assembly-CSharp.dll
public struct KerbalAttributes
- Inherited Members
-
- Extension Methods
-
Constructors
KerbalAttributes(SerializedKerbalAttributes)
public KerbalAttributes(SerializedKerbalAttributes serializedKerbalAttributes)
Parameters
serializedKerbalAttributes SerializedKerbalAttributes
KerbalAttributes(string, string, string)
public KerbalAttributes(string customNameKey, string firstName, string surname)
Parameters
customNameKey string
firstName string
surname string
Fields
ATTRIBUTE_NAME_BIOGRAPHY
public const string ATTRIBUTE_NAME_BIOGRAPHY = "BIOGRAPHY"
Field Value
- string
ATTRIBUTE_NAME_BRAVERY
public const string ATTRIBUTE_NAME_BRAVERY = "BRAVERY"
Field Value
- string
ATTRIBUTE_NAME_CONSTITUTION
public const string ATTRIBUTE_NAME_CONSTITUTION = "CONSTITUTION"
Field Value
- string
ATTRIBUTE_NAME_HAIRCOLOR
public const string ATTRIBUTE_NAME_HAIRCOLOR = "HAIRCOLOR"
Field Value
- string
ATTRIBUTE_NAME_ISVETERAN
public const string ATTRIBUTE_NAME_ISVETERAN = "ISVETERAN"
Field Value
- string
ATTRIBUTE_NAME_NAME
public const string ATTRIBUTE_NAME_NAME = "NAME"
Field Value
- string
ATTRIBUTE_NAME_ORIGINTYPE
public const string ATTRIBUTE_NAME_ORIGINTYPE = "ORIGINTYPE"
Field Value
- string
ATTRIBUTE_NAME_RAW_CUSTOM_NAME
public const string ATTRIBUTE_NAME_RAW_CUSTOM_NAME = "RAW_CUSTOM_NAME"
Field Value
- string
ATTRIBUTE_NAME_STUPIDITY
public const string ATTRIBUTE_NAME_STUPIDITY = "STUPIDITY"
Field Value
- string
ATTRIBUTE_NAME_SURNAME
public const string ATTRIBUTE_NAME_SURNAME = "SURNAME"
Field Value
- string
ATTRIBUTE_NAME_TYPE
public const string ATTRIBUTE_NAME_TYPE = "TYPE"
Field Value
- string
Attributes
public Dictionary<string, VarietyPreloadInfo> Attributes
Field Value
- Dictionary<string, VarietyPreloadInfo>
DEFAULT_KERBAL_SURNAME
public const string DEFAULT_KERBAL_SURNAME = "Kerman"
Field Value
- string
DEFAULT_NAME_LANGUAGE
public const string DEFAULT_NAME_LANGUAGE = "English"
Field Value
- string
Properties
CustomNameKey
public string CustomNameKey { get; }
Property Value
- string
FirstName
public string FirstName { get; }
Property Value
- string
Surname
public string Surname { get; }
Property Value
- string
Methods
GetAttribute(string)
public object GetAttribute(string attributeKey)
Parameters
attributeKey string
Returns
- object
GetFullName()
public string GetFullName()
Returns
- string
SetAttribute(string, VarietyPreloadInfo)
public void SetAttribute(string attributeKey, VarietyPreloadInfo preloadInfo)
Parameters
attributeKey string
preloadInfo VarietyPreloadInfo
SetAttribute<T>(string, object, string)
public void SetAttribute<T>(string attributeKey, object value, string attachNodeName = null)
Parameters
attributeKey string
value object
attachNodeName string
Type Parameters
T
ToString()
public override string ToString()
Returns
- string