Ejemplo n.º 1
0
 public string GetStr(string def)
 {
     if (VarsInternal.Get().Contains(this.m_key))
     {
         return(VarsInternal.Get().Value(this.m_key));
     }
     return(def);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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));
    }
Ejemplo n.º 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));
    }
Ejemplo n.º 7
0
 public static void RefreshVars()
 {
     VarsInternal.RefreshVars();
 }
Ejemplo n.º 8
0
 public static void RefreshVars()
 {
     VarsInternal.s_instance = new VarsInternal();
 }
Ejemplo n.º 9
0
 static VarsInternal()
 {
     VarsInternal.s_instance = new VarsInternal();
 }
Ejemplo n.º 10
0
 public static void RefreshVars()
 {
     VarsInternal.s_instance = new VarsInternal();
 }