示例#1
0
 public string GetStr(string def)
 {
     if (VarsInternal.Get().Contains(this.m_key))
     {
         return(VarsInternal.Get().Value(this.m_key));
     }
     return(def);
 }
示例#2
0
 public int GetInt(int def)
 {
     if (VarsInternal.Get().Contains(this.m_key))
     {
         return(GeneralUtils.ForceInt(VarsInternal.Get().Value(this.m_key)));
     }
     return(def);
 }
示例#3
0
 public bool GetBool(bool def)
 {
     if (VarsInternal.Get().Contains(this.m_key))
     {
         return(GeneralUtils.ForceBool(VarsInternal.Get().Value(this.m_key)));
     }
     return(def);
 }
示例#4
0
 public float GetFloat(float def)
 {
     if (VarsInternal.Get().Contains(this.m_key))
     {
         return(GeneralUtils.ForceFloat(VarsInternal.Get().Value(this.m_key)));
     }
     return(def);
 }
示例#5
0
    public int GetInt(int def)
    {
        if (!VarsInternal.Get().Contains(this.m_key))
        {
            return(def);
        }
        string str = VarsInternal.Get().Value(this.m_key);

        return(GeneralUtils.ForceInt(str));
    }
示例#6
0
    public bool GetBool(bool def)
    {
        if (!VarsInternal.Get().Contains(this.m_key))
        {
            return(def);
        }
        string str = VarsInternal.Get().Value(this.m_key);

        return(GeneralUtils.ForceBool(str));
    }
示例#7
0
 public static void RefreshVars()
 {
     VarsInternal.RefreshVars();
 }
 public static void RefreshVars()
 {
     VarsInternal.s_instance = new VarsInternal();
 }
示例#9
0
 static VarsInternal()
 {
     VarsInternal.s_instance = new VarsInternal();
 }
示例#10
0
 public static void RefreshVars()
 {
     VarsInternal.s_instance = new VarsInternal();
 }