Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 2.24 KB

README.md

File metadata and controls

21 lines (18 loc) · 2.24 KB

JSON Configuration File

Introduction

JSON Configuration File is a plugin for Godot that aims to aid reading user input via a JSON file. It uses three types of classes for this purpose:

  • JSONConfigFile: The main class of this plugin. This class would read the user input file, detecting its potential errors. This class also returns the dictionary obtained. It works by adding properties of the desired JSON structure via code.
  • JSONProperty: The class that defines what restrictions a given property has. This class itself does not apply any test to the user input, but every other property extends from this one. Here it is the list with the twelve types of properties based on this class, alongside the input they expect:
  • JSONConfigProcessor: The abstract class from which any custom process must extend. The functionality of this class is a bit advanced, but basically, it serves as a way to create functions to process the user input before or after the property tests.