42 lines
1.5 KiB
C#
42 lines
1.5 KiB
C#
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<string> 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";
|
|
|
|
/// <summary>
|
|
/// Return the name of the environment to use.
|
|
/// Each environment is a dedicated workspace and must be separated from the others.
|
|
/// </summary>
|
|
public string EnvironmentName => EnvironmentDev;
|
|
|
|
/// <summary>
|
|
/// Return the URI of the ElasticSearch service.
|
|
/// </summary>
|
|
public string ElasticSearchUri => "http://elastic-emea.ubisoft.org/justdance/es/";
|
|
}
|
|
}
|