コード例 #1
0
        public HTMLBuilder(ParsedEvtcLog log, HTMLSettings settings, HTMLAssets assets, Version parserVersion, UploadResults uploadResults)
        {
            if (settings == null)
            {
                throw new InvalidDataException("Missing settings in HTMLBuilder");
            }
            _eiJS           = assets.EIJavascriptCode;
            _eiCRJS         = assets.EICRJavascriptCode;
            _eiHealingExtJS = assets.EIHealingExtJavascriptCode;
            _parserVersion  = parserVersion;
            _scriptVersion  = parserVersion.Major + "." + parserVersion.Minor;
#if !DEBUG
            _scriptVersion += "." + parserVersion.Build;
#else
            _scriptVersion += "-debug";
#endif
            _scriptVersionRev = parserVersion.Revision;
            _log = log;

            _uploadLink = uploadResults.ToArray();

            _cr                  = _log.CanCombatReplay;
            _light               = settings.HTMLLightTheme;
            _externalScripts     = settings.ExternalHTMLScripts;
            _externalScriptsPath = settings.ExternalHtmlScriptsPath;
            _externalScriptsCdn  = settings.ExternalHtmlScriptsCdn;
            _compressJson        = settings.CompressJson;
        }
コード例 #2
0
        public HTMLBuilder(ParsedEvtcLog log, HTMLSettings settings, HTMLAssets assets, string[] uploadString = null)
        {
            if (settings == null)
            {
                throw new InvalidDataException("Missing settings in HTMLBuilder");
            }
            _eiJS          = assets.EIJavascriptCode;
            _eiCRJS        = assets.EICRJavascriptCode;
            _scriptVersion = log.ParserVersion.Major + "." + log.ParserVersion.Minor;
#if !DEBUG
            _scriptVersion += "." + log.ParserVersion.Build;
#endif
            _scriptVersionRev = log.ParserVersion.Revision;
            _log = log;

            _uploadLink = uploadString ?? new string[] { "", "", "" };

            _cr              = _log.CanCombatReplay;
            _light           = settings.HTMLLightTheme;
            _externalScripts = settings.ExternalHTMLScripts;
        }