public static DynamicObjectsSaveFile CreateSaveFileFromCurrentState()
            {
                DynamicObjectsSaveFile save = new DynamicObjectsSaveFile {
                    dynamicObjectRecords = DynamicObjectManager.allDynamicObjectRecords
                };

                return(save);
            }
        static DynamicObjectsSaveFile GetDynamicObjectsSaveFile(string saveFileName)
        {
            string directoryPath = SavePath(saveFileName);
            string saveFile      = $"{directoryPath}/{filename}";

            if (Directory.Exists(directoryPath) && File.Exists(saveFile))
            {
                BinaryFormatter        bf   = new BinaryFormatter();
                FileStream             file = File.Open(saveFile, FileMode.Open);
                DynamicObjectsSaveFile save = (DynamicObjectsSaveFile)bf.Deserialize(file);
                file.Close();

                return(save);
            }
            else
            {
                return(null);
            }
        }
 public static DynamicObjectsSaveFile GetDynamicObjectRecordsSave()
 {
     return(DynamicObjectsSaveFile.CreateSaveFileFromCurrentState());
 }