public override void Set(ArgEntry arg) { if (float.TryParse(arg.Value, out float ret)) { m_Info.SetValue(m_Obj, ret); } }
public override void Set(ArgEntry arg) { if (string.IsNullOrEmpty(arg.Value)) { m_Info.SetValue(m_Obj, true); } else if (bool.TryParse(arg.Value, out bool ret)) { m_Info.SetValue(m_Obj, ret); } }
public bool IsMatch(ArgEntry entry) { if (m_Arg.ShortName != 0 && m_Arg.ShortName == entry.ShortName) { return(true); } if (!string.IsNullOrEmpty(m_Arg.LongName) && m_Arg.LongName == entry.LongName) { return(true); } return(false); }
public override void Set(ArgEntry arg) { var json = System.IO.File.ReadAllText(arg.Value); JsonUtility.FromJsonOverwrite(json, m_Obj); }
public abstract void Set(ArgEntry arg);
public override void Set(ArgEntry arg) { m_Info.SetValue(m_Obj, System.Enum.Parse(m_Info.FieldType, arg.Value)); }
public override void Set(ArgEntry arg) { m_Info.SetValue(m_Obj, arg.Value); }