27 lines
936 B
C#
27 lines
936 B
C#
using System.IO;
|
|
using FlaxEngine;
|
|
|
|
namespace Game
|
|
{
|
|
public static class AssetManager
|
|
{
|
|
public static string ContentPath { get; private set; } =
|
|
Path.Combine(Directory.GetCurrentDirectory(), "Content");
|
|
|
|
public static string DemoPath { get; private set; } =
|
|
Path.Combine(Directory.GetCurrentDirectory(), "Demos");
|
|
|
|
public static string CachePath { get; private set; } =
|
|
Path.Combine(Directory.GetCurrentDirectory(), "Cache");
|
|
|
|
public static GameplayGlobals Globals { get; private set; }
|
|
public static Config Config { get; private set; }
|
|
|
|
//public static void Init()
|
|
static AssetManager()
|
|
{
|
|
Globals = Content.Load<GameplayGlobals>(Path.Combine(ContentPath, "Settings", "GameSettings", "GameplayGlobals.flax"));
|
|
Config = ConfigParser.ParseFile(Path.Combine(ContentPath, "config.cfg"));
|
|
}
|
|
}
|
|
} |