Behavioral trees - implementation details

This contains implementation details for behavioral trees. This includes database structure, data retrieval, node prototypes vs node instances, and how a generic compact solution was achieved
Note: This is one of the more difficult and complex topics, when we talk about the structure of generic behavioral tree redaction system...

This is sub-layout for documentation pages


1 The wanted features

So first off, start with what we require from the system?

In order to achieve this, we will use a SQL database to store the behavioral trees.
We will also store the node prototypes into the database, and allow to add / edit / delete node types from this website. The same CRUD operations will be available for node attributes.

2 Database structure

Let's start with database structure. The following diagram will explain more than thousand words: