TShock Plugin Development Tutorial: Basic Configuration (#2)
Concepts Introduced: Configuration, code cleanup from last episode.
Today we take our plugin from last episode and add the ability to generate, store and read information from a configuration file, typically accessible as a JSON file. I also employ some better practices in our plugin that I overlooked in last episode.
00:00 - Brief Intro & Concept Overview
00:43 - Code Cleanup & Improvements
02:22 - Adding our configuration class
02:41 - What is a config file?
03:30 - Writing our configuration class
06:45 - Implementing our config in our main class
08:30 - Allowing our config to reloaded
09:30 - Quick Test
10:09 - Example utilization of config
11:55 - Testing the plugin
12:38 - Implementing a reload message
13:12 - Not working correctly
13:44 - Fixing the issue
14:30 - Testing our functional plugin
15:15 - Outro
Download & Install - Visual Studio: https://visualstudio.microsoft.com/vs/