Add data objects
Last updated
Last updated
To add new custom data to Databrain, simply follow these steps.
Create a new class (for example EnemyData) with some fields and derive from DataObject.
Save the file and wait for compilation.
Create a new DataLibrary object in your project. Right click in the project view and select: Create / Databrain / Data Library
Open the DataLibrary. You can now find your newly created EnemyData type in the global namespace category.
Select the EnemyData type and click on create.
You can categorize data types by namespace, data types and derived types. For example, following code:
Sub type:
Results in this:
You can also define a color and icon for your data types. Please read the attributes section for more information: