mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-01 20:34:57 +01:00
Saves keep comments and every byte they do not change. Faults in a scenery's text are found and described. Files that change while the starter runs are picked up without a manual reload.
18 lines
514 B
C#
18 lines
514 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using StarterNG.Domain.Sceneries;
|
|
|
|
namespace StarterNG.Application.Abstractions;
|
|
|
|
public readonly record struct SceneryLoadProgress(int Loaded, int Total, string FileName);
|
|
|
|
public interface ISceneryRepository
|
|
{
|
|
IReadOnlyList<Scenery> LoadAll(IProgress<SceneryLoadProgress>? progress = null);
|
|
|
|
Scenery? Load(string path);
|
|
|
|
/// <summary>The scenery files there are now; null while their folder is away.</summary>
|
|
IReadOnlyList<string>? ListFiles();
|
|
}
|