EntityTypeInfo

@Serializable
data class EntityTypeInfo(val typeName: String, val processes: List<ProcessInfo> = emptyList(), val include: Boolean = true, val isAgent: Boolean = false)(source)

An animatable entity/agent type (10.1b): its typeName (the class simpleName, matching EntityCreated.entityType) and the processes declared on it (from @KSLAnimatedProcess, or — when none are annotated — a best-effort list of its KSLProcess-valued properties, keyed by property name).

Constructors

Link copied to clipboard
constructor(typeName: String, processes: List<ProcessInfo> = emptyList(), include: Boolean = true, isAgent: Boolean = false)

Properties

Link copied to clipboard

Whether the type is animated/captured; false from @KSLAnimatedEntity(include=false) (10.1d).

Link copied to clipboard

True when the type is an agent (an AgentModel.Agent subclass): its visual-ness is runtime-conditional (drawn only if projected/moved), unlike a process entity which the process-view machinery always draws (G3).

Link copied to clipboard
@Transient
var isInternal: Boolean

True when the library itself creates the type for an element, such as the entity that runs a resource's behavior: it is captured, but it is not one of the model's own entity types to lay out or animate. A property of the body rather than the constructor, so the constructor and copy keep their signatures; copy does not carry it. Not serialized, so that an inventory written by this release is read by a release that does not know it; an inventory read back from its serialized form reports false.

Link copied to clipboard
Link copied to clipboard