|
Adventure Creator 1.85.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2025
|
Public Member Functions | |
| VarPreset (List< GVar > _vars, int[] idArray) | |
| The default Constructor. | |
| void | UpdateCollection (List< GVar > _vars) |
| Ensure the List of PresetValues contains a preset for each supplied variable. | |
| void | UpdateCollection (GVar _var) |
| Ensure the List of PresetValues contains a preset for a supplied variable. | |
| PresetValue | GetPresetValue (GVar _var) |
| Gets the PresetValue for a specific variable. | |
| PresetValue | GetPresetValue (int variableID) |
| Gets the PresetValue for a specific variable. | |
Public Attributes | |
| string | label |
| int | ID |
| List< PresetValue > | presetValues = new List<PresetValue>() |
A data container of preset variable values.
| AC.VarPreset.VarPreset | ( | List< GVar > | _vars, |
| int[] | idArray ) |
The default Constructor.
| _vars | A List of variables to create presets for |
| idArray | An array of previously-used ID numbers, so that a unique one can be assigned |
| PresetValue AC.VarPreset.GetPresetValue | ( | GVar | _var | ) |
Gets the PresetValue for a specific variable.
| _var | The variable to get the PresetValue of |
| PresetValue AC.VarPreset.GetPresetValue | ( | int | variableID | ) |
Gets the PresetValue for a specific variable.
| variableID | The ID number of the variable to get the PresetValue of |
| void AC.VarPreset.UpdateCollection | ( | GVar | _var | ) |
Ensure the List of PresetValues contains a preset for a supplied variable.
| _vars | The variable to create a preset for |
| void AC.VarPreset.UpdateCollection | ( | List< GVar > | _vars | ) |
Ensure the List of PresetValues contains a preset for each supplied variable.
| _vars | The List of variables to create presets for |
| int AC.VarPreset.ID |
A unique identifier
| string AC.VarPreset.label |
Its display name
| List<PresetValue> AC.VarPreset.presetValues = new List<PresetValue>() |
A List of PresetValues that match either all global or local variables (see GVar) by ID number