using System;
namespace Editor;
///
/// Represents a variable.
///
public partial class MapClassVariable
{
///
/// The internal name.
///
public string Name { get; set; }
///
/// The user friendly name for UI.
///
public string LongName { get; set; }
///
/// Description for this variable.
///
public string Description { get; set; }
///
/// Category or group for this variable.
///
public string GroupName { get; set; }
///
/// Data type for this variable.
///
public Type PropertyType { get; set; }
///
/// Default value for this variable.
///
public object DefaultValue { get; set; }
///
/// Internal, used to override the type to one the tools understand.
///
public string PropertyTypeOverride { get; set; }
///
/// General purpose key-value store to alter functionality of UI, map compilation, editor helpers, etc.
///
public Dictionary Metadata { get; set; } = new();
// Min/Max, Hidden, Important, Randomizable
public override string ToString()
{
return $"MapClassVariable( {Name} )";
}
}