Export

Export

Export Changelog
Export Changelog
The export plugin is designed to facilitate all exporting of data to various formats. Predominantly the data is exported to a single json or lua file.
The export allows you to configure a great deal about how you would like your data shaped int he final file.
Additionally it supported outputting c# scripts for direct use in Unity. These scripts will read and present that data to you in game with very little effort on your part.

Output format

You can configure the export from the Project Settings menu under Project. All settings are saved on a project by project bases.
notion image
You will be presented with the dialog below.
notion image
Double clicking on the export tree node will open up all the settings.

Export

The export tab allows you to define data structure of the exported data. You may need to explore these options to find what works for you.
Export GOB Metadata
If you select this each gob will have its structure described and the data presented in that object. Keep this setting if your solutions can use the meta data to understand and work with the data.
Export GOBInstance _type
This option decided if an extra value of _type will be added to each GOBInstance record. This can be useful if you need a way top tell what data structure you are looking at during runtime.
You can decide to Never have the value or Always or only on types that are polymorphed.
Export Linked GOBInstance _type
This is an additional option to include a linked type to a linked GOBInstace value. Linked GOB instances stand alone and are referenced by a UUID not by a Name. This means you may not know the type so embedding it into the value helps.
{TypeName}_{UUID}
This allows you to look up the appropriate type at load time.
Place all Polymorphed Data with Parent
When exporting this will cause it to export all data for polymorphed types with the parent type. Allowing for reading from one data set.
Exclude Empty GOB Types
If there is no data for a gob type then exclude it from the export.

Unity

We have included a specific block of export functions for Unity. This includes creating the code and configuring the export.
Setting up the data for export.
notion image
This is a helper function to configure the export to suit the Unity code generators anticipated Data.
Exporting the Unity c# scripts
The menu shown below will export the scripts you can use in your Unity project. These can be placed anywhere in your code base.
notion image
Configuring scripts
There are several templates for full and partial classes when exporting. You can modify these to change how your desired classes are generated.
notion image