Skip to content

FormulaEngine Concepts Entities

Mike Lewis edited this page Feb 14, 2016 · 1 revision

FormulaEngine Concepts - Entities

Entities are simply objects existing within the simulation. They consist of a set of named properties and lists and can optionally have bindings to C++ code. Entities can either be spawned statically (at the start of the simulation and persisting through the entire simulation), or dynamically via archetypes.

For example, a creature in an RPG might have an entity that represents that creature, with properties for each of the stats/etc. assigned to it, and lists for the items and equipment the creature is carrying.

Entities can also be useful as bookkeeping mechanisms, such as representing a "room" in a MUD, or storing global data used for configuring a simulation. In general, any time you need a collection of related properties and/or lists, reach for the entity tool in the toolbox.

Clone this wiki locally