Ejemplo n.º 1
0
 protected void ApplyDefaults()
 {
     if (_defaults == null)
     {
         LoadDefaults();
     }
     _defaults.CopyInto(this);
 }
 /// <summary>Creates a new ES3Settings object with the given path.</summary>
 /// <param name="path">The path associated with this ES3Settings object.</param>
 /// <param name="settings">The settings we want to use to override the default settings.</param>
 public ES3Settings(string path, ES3Settings settings)
 {
     // if there are settings to merge, merge them.
     if (settings != null)
     {
         settings.CopyInto(this);
     }
     this.path = path;
 }
 public ES3Settings(bool applyDefaults)
 {
     if (applyDefaults)
     {
         if (defaultSettings != null)
         {
             _defaults.CopyInto(this);
         }
     }
 }
Ejemplo n.º 4
0
    /// <summary>Creates a new ES3Settings object with the given path.</summary>
    /// <param name="path">The path associated with this ES3Settings object.</param>
    /// <param name="settings">The settings we want to use to override the default settings.</param>
    public ES3Settings(string path = null, ES3Settings settings = null) : this(true)
    {
        // if there are settings to merge, merge them.
        if (settings != null)
        {
            settings.CopyInto(this);
        }

        if (path != null)
        {
            this.path = path;
        }
    }