using System.Collections.Generic; using System.IO; using System.Linq; using JD.Core.Data; namespace JD.Core { public class JDDefinitions { public static JDDefinitions Instance { get; } = new JDDefinitions(); public uint JDVersionNumeric => JdVersion.Current.Number; public IEnumerable GetCommunityMashupVideoDirectory(string mapName) { return Directory.GetDirectories(@"\\ubisoft.org\Projects\JustDanceCatalog\G2W").Where(directory => directory.Contains(mapName)); } public string NasScoringDirectory => @"\\ubisoft.org\projects\JD2016_PUN\Score_Design\JD2017\Scoring"; public string ScoringToolsLocation => @"..\scoringtools\"; public string ToolsDirectoryRelativeToDataRoot => @"engine\Tools"; public string[] TextFileExtensions => new [] { ".tpl", ".isc", ".act", ".trk", ".dtape", ".ktape", ".btape", ".stape", ".tape", ".xml" }; private const string EnvironmentDev = "dev"; private const string EnvironmentLocal = "local"; private const string EnvironmentProduction = "production"; /// /// Return the name of the environment to use. /// Each environment is a dedicated workspace and must be separated from the others. /// public string EnvironmentName => EnvironmentDev; /// /// Return the URI of the ElasticSearch service. /// public string ElasticSearchUri => "http://elastic-emea.ubisoft.org/justdance/es/"; } }