StonehearthEditor.Module.AddModuleFiles C# (CSharp) Method

AddModuleFiles() private method

private AddModuleFiles ( string fileType ) : void
fileType string
return void
        private void AddModuleFiles(string fileType)
        {
            JToken fileTypes = mManifestJson[fileType];
            if (fileTypes != null)
            {
                Dictionary<string, ModuleFile> dictionary = new Dictionary<string, ModuleFile>();
                mModuleFiles[fileType] = dictionary;
                foreach (JToken item in fileTypes.Children())
                {
                    JProperty alias = item as JProperty;
                    string name = alias.Name.Trim();
                    string value = alias.Value.ToString().Trim();

                    ModuleFile moduleFile = new ModuleFile(this, name, value);
                    dictionary.Add(name, moduleFile);
                }
            }
        }