thief-mission-viewer/project/code/TMV/Context.cs

21 lines
559 B
C#
Raw Normal View History

2024-09-05 16:31:31 +00:00
using Godot;
using KeepersCompound.LGS;
namespace KeepersCompound.TMV;
public partial class Context : Node
{
public static Context Instance { get; private set; }
public ResourcePathManager PathManager { get; private set; }
public ModelLoader ModelLoader { get; private set; }
public override void _Ready()
{
var extractPath = ProjectSettings.GlobalizePath($"user://extracted/tmp");
PathManager = new ResourcePathManager(extractPath);
ModelLoader = new ModelLoader(PathManager);
Instance = this;
}
}