You are viewing a potentially older version of this package.
View all versions.
JsonFileIO
(For making mods) Code lets you read/write JSONs full of key-value pairs to your plugin folder.
By NGA
Date uploaded | 7 months ago |
Version | 0.0.1 |
Download link | NGA-JsonFileIO-0.0.1.zip |
Downloads | 72 |
Dependency string | NGA-JsonFileIO-0.0.1 |
README
JsonSaveSystem
Features
- Everything's under namespace NGA
- Class ExtensibleDictionary is made up of a list of key-value pairs 'DictionaryEntry'
- Call ExtensibleDictionary.AddEntry to create a new key-value pair, .RemoveEntry to remove it by key, and .GetValue to get it value by key
- Call .ContainsKey to quickly check if a key exists
- Call ExtensibleDictionary.ToJson to turn the dictionary into a string
- Calling .FromJson on a valid string will return ExtensibleDictionary
- Call ExtensibleDictionary.AddEntry to create a new key-value pair, .RemoveEntry to remove it by key, and .GetValue to get it value by key
- Class FileIO has utilities that let you write to your own mod's folder within the current profile
- Call FileJsonIO.WriteToFile() with a filename (not a file path) and string content to write/clean-overwrite an existing file
- Call .ReadFile() with a filename to read in string of that file
How to use in Your mod
MeatKit
Plugin
Collapsed Info
- Nothing to see here
Planned Features
- [✓] ExtensibleDictionary and FileIO classes work
Versions
0.0.1
- Adds ExtensibleDictionary and FileIO