Types

Entity

An entity is just a (non-negative) number that references an in-game object. Entities can have many components, which is additional data attached to the entity. Most of the time the same component comes together with a very well defined set of other components, e.g.:
- a Construction comes with a Name, a PlayerOwned, a ModelInstanceList, a BoundingVolume, a TerrainAlignmentList (and optionally a StationGroup) and more;
- a Street or Track comes with a BaseEdge, a BaseEdgeStreet/Track, a PlayerOwned and a TransportNetwork, a BoundingVolume and more;
- an in-game asset comes with a ModelInstanceList, an AssetGroup and a BoundingVolume and more.

When an entity is being created (for instance with a api.type.SimpleProposal), it is sometimes assigned a temporary negative number, until it is properly inserted into the engine and receives a proper positive number.

Component

A component is a collection of data that can be attached to an entity. api.type.ComponentType is a table containing all available components. Additionally, you can find the content of each component at type.Component.

generated by LDoc 1.4.3 Last updated 2023-04-18 15:10:38