A class in Alta.IO, Alta.Utilities.
Static folder roots the game reads and writes: the storage folder (AppData A Township Tale, or /app_data_path), its data, Servers and Client subfolders, and the install folder. Set up once in the static constructor.
Constructors
| Member | What it is |
|---|
AltaIO() | Creates an AltaIO with default values. |
Fields
| Member | What it is |
|---|
const string GameTitle | "A Township Tale", also the default storage folder name. |
1 private and internal field
| Member | What it is |
|---|
private static Logger logger | Class logger. |
Properties
| Member | What it is |
|---|
static IAltaFolder CacheFolder { get; private set; } | Client/Cache under the storage folder. |
static IAltaFolder ClientFolder { get; private set; } | Client under the storage folder. |
static IAltaFolder GameFolder { get; private set; } | The game's install folder (parent of the Unity data folder). |
static IAltaFolder PersistentStorageFolder { get; private set; } | data under the storage folder. |
static IAltaFolder ServersFolder { get; private set; } | Servers under the storage folder, where server saves live. |
static IAltaFolder StorageFolder { get; private set; } | Root storage folder. Can be backed by S3 or another directory through /remote_saves. |
Methods
1 private and internal method
| Member | What it is |
|---|
private static void SetSavePath() | Picks the storage root from /app_data_path, and wraps it in an S3 or remote folder when /remote_saves is given. Then builds the subfolders. |