In my last post I described three types of files used by Seventh Sanctum, at a high level.
This post describes the configuration files in more detail. This is the simplest file type. I figure I can knock this one out and it’ll go live tomorrow morning.
Configuration File Syntax
Really simple. Using pizzaconfdat.txt
because it’s the most complex (yes, it is), I see:
Any
ANY
pizzamixdat.txt
pizzameatdat.txt
pizzavegdat.txt
pizzadat.txt
Combinations
COMBO
pizzamixdat.txt
pizzadat.txt
Meat Pizzas
MEAT
pizzameatdat.txt
pizzadat.txt
Vegetable Pizzas
VEG
pizzavegdat.txt
pizzadat.txt
Indentations are shown with spaces, so they can be seen. In the source file the indentations are done with tabs.
I make it that the top level is a label that would get displayed as the subject title. The second level looks like it’s a generator target (‘table’, of a sort). The third level is the simplest, listing files to load.
pizzadat.txt
has all the ingredients, classified by type.pizzamixdat.txt
has templates for generating topping lists with all topping types.pizzameatdat.txt
has templates for generating topping lists with everything but vegetables.pizzavegdat.txt
has templates for generating topping lists with everything but meats.
When loaded, the templates from all loaded files are concatenated into a single template list.
The details of how that works will have to wait for tomorrow.