Skip to content

ModelEntities Code

mitchell-conrad edited this page Jan 19, 2021 · 1 revision

Table of Contents

Code

The Code entity allows modellers to insert a snippet of C++ code into the behaviour being modelled.

Any statements inside of the code block are only within scope for their particular Code entity. This means that a variable declared in one Code entity cannot be referred to in another Code entity.

The following is an example of the structure of the C++ that would be generated from two code entities in a row:

// Code entity #1
{
    // User code here
}

// Code entity #2
{
    // User code here
}

Parent

Can be adopted by the below entities:

Children

This entity cannot adopt any children.

Dependents

This entity does not have any dependent entities.

Dependencies

This entity does not depend on any entities.

Editable Data Fields

  • code - pops up a text editor where the snippet of C++ code to be inserted is to be placed
  • label - sets the label

Edges

This entity does not have any visible edges attached to it.

Clone this wiki locally