/**<summary>Constructs the base variable.</summary>*/ public VarInfo(VarTypes type, string internalName, VarSetters setter = VarSetters.Normal) { this.Type = type; if (internalName != "") { this.Field = typeof(Item).GetField(internalName); } else { this.Field = null; } this.Setter = setter; }
//=========== HELPERS ============ #region Helpers /**<summary>Registers a variable.</summary>*/ private static void AddVar(VarTypes type, string internalName, string externalName, VarSetters setter = VarSetters.Normal) { VarInfoList.Add(externalName, new VarInfo(type, internalName, setter)); }