Class TuningDescriptionClass
- Namespace
- LlamaLogic.TuningDescriptions
- Assembly
- LlamaLogic.TuningDescriptions.dll
Represents a class described in a TuningDescriptionModule (a Class element): an enumeration, the holder of module tuning, or both (🔒)
public sealed class TuningDescriptionClass
- Inheritance
-
TuningDescriptionClass
- Inherited Members
Properties
Attributes
Gets all of the class's attributes, by name
public IReadOnlyDictionary<string, string> Attributes { get; }
Property Value
Classes
Gets the classes nested in this one, in document order
public IReadOnlyList<TuningDescriptionClass> Classes { get; }
Property Value
EnumItems
Gets the members of the enumeration the class is, in document order
public IReadOnlyList<TuningDescriptionEnumItem> EnumItems { get; }
Property Value
IsBitFlagEnum
Gets whether the class is an enumeration of bit flags (its enum_bit_flag attribute)
public bool IsBitFlagEnum { get; }
Property Value
IsEnum
Gets whether the class is an enumeration
public bool IsEnum { get; }
Property Value
IsLockedEnum
Gets whether the enumeration's members are fixed (its enum_locked attribute)
public bool IsLockedEnum { get; }
Property Value
Members
Gets the module tuning the class declares, in document order
public IReadOnlyList<TunableDescription> Members { get; }
Property Value
Module
Gets the module in which the class is described
public TuningDescriptionModule Module { get; }
Property Value
Muid
Gets the unique identifier Maxis assigns the class (its muid attribute)
public ulong? Muid { get; }
Property Value
Name
Gets the name of the class (its name attribute)
public string Name { get; }
Property Value
Parent
Gets the class in which this one is nested, or null if it is not nested
public TuningDescriptionClass? Parent { get; }
Property Value
StaticEntriesName
Gets the name by which a StaticEntries attribute refers to the class, such as sims-sim_info_types.Age
public string StaticEntriesName { get; }
Property Value
Methods
GetClass(string)
Gets the nested class with the specified name, or null if there is none
public TuningDescriptionClass? GetClass(string name)
Parameters
namestring
Returns
GetEnumValue(string)
Gets the value of the enumeration member with the specified name, or null if there is none
public long? GetEnumValue(string name)
Parameters
namestring
Returns
- long?