--- Defines the `ConstDef` class, which represents a global constant used by the game. --- --- The `ConstDef` class has the following properties: --- - `type`: The type of the constant, which can be "bool", "number", "text", "color", "string_list", "preset_id", or "preset_id_list". --- - `value`: The value of the constant, which can be of the type specified by the `type` property. --- - `scale`: The scale factor for the value, which is only applicable for "number" type constants. --- - `translate`: A boolean indicating whether the value should be translated. --- - `preset_class`: The preset class associated with the constant, which is only applicable for "preset_id_list" and "preset_id" type constants. --- --- The `ConstDef` class also has the following methods: --- - `GetLuaCode()`: Returns the Lua code to access the constant. --- - `GetDefaultPropertyValue(prop, prop_meta)`: Returns the default value for a given property of the constant. --- - `GetDefaultValueOf(type)`: Returns the default value for a given type of constant. --- - `GetValueText()`: Returns the text representation of the constant's value. DefineClass.ConstDef = {__parents={"Preset"}, properties={{id="_", editor="help", help="