StonehearthEditor.ModuleFile.ModuleFile C# (CSharp) Method

ModuleFile() public method

public ModuleFile ( Module module, string alias, string filePath ) : System
module Module
alias string
filePath string
return System
        public ModuleFile(Module module, string alias, string filePath)
        {
            mModule = module;
            mAlias = alias;
            mOriginalFilePath = filePath;
            mRootFile = JsonHelper.GetFileFromFileJson(filePath, module.Path);
            int lastColon = Name.LastIndexOf(':');
            mShortName = lastColon > -1 ? Name.Substring(lastColon + 1) : Name;
            if (mShortName.Equals("fine"))
            {
                string oneBefore = Name.Substring(0, lastColon);
                int secondToLastColon = oneBefore.LastIndexOf(':');
                oneBefore = secondToLastColon > -1 ? oneBefore.Substring(secondToLastColon + 1) : oneBefore;
                mShortName = oneBefore;
                mIsFineVersion = true;
            }

            DetermineFileType();
        }