1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 07:30:40 +01:00

Updated object reference

This commit is contained in:
Rich Dunne 2021-05-07 04:09:35 -06:00
parent eb77107edf
commit ea3c3acff0

View file

@ -35,7 +35,7 @@ namespace SceneManager
// Barriers
internal static Dictionary<string, Model> Barriers { get; private set; } = new Dictionary<string, Model>();
internal static List<Objects.Path> ImportedPaths { get; private set; } = new List<Objects.Path>();
internal static List<Paths.Path> ImportedPaths { get; private set; } = new List<Paths.Path>();
internal static void LoadSettings()
{
@ -99,7 +99,7 @@ namespace SceneManager
foreach (string file in savedPaths)
{
Game.LogTrivial($"File: {Path.GetFileName(file)}");
var importedPath = PathXMLManager.LoadItemFromXML<Objects.Path>(SAVED_PATHS_DIRECTORY + Path.GetFileName(file));
var importedPath = Serializer.LoadItemFromXML<Paths.Path>(SAVED_PATHS_DIRECTORY + Path.GetFileName(file));
importedPath.Name = Path.GetFileNameWithoutExtension(file);
ImportedPaths.Add(importedPath);
}