Updated the YAML parsing method (#3694)

Synchronized the process of loading and parsing YAML databases.
Provides more robust parse warnings/errors.
Added Header checks to validate database versions.
Adjusted root keys to a standard name of Body.
Adjusted inter-server storages, achievements, and attendance to follow the new format.

Fixes #3483

Thanks to @Lemongrass3110!
This commit is contained in:
Aleos
2019-02-28 16:19:39 -05:00
committed by Lemongrass3110
parent 757a459320
commit 78eed02273
32 changed files with 2120 additions and 952 deletions

View File

@@ -28,7 +28,15 @@
# Table: "<storage_table>" // (string) Name of table where storage is saved. The table stucture is the same as the default storage table.
# Max: <max_amount> // (int) *optional* Maximum number of items in storage. MAX_STORAGE will be used if no value is defined.
Storages:
- ID: 0
Name: "Storage"
Table: "storage"
Header:
Type: INTER_SERVER_DB
Version: 1
Body:
- ID: 0
Name: "Storage"
Table: "storage"
Footer:
Imports:
- Path: conf/import/inter_server.yml