games.cavu.entityClass
An entity class to share between games: a Lua script returning the class table (handlers, project, view, synced, ...), run sandboxed by the Cavu entity engine. A game lists it in its manifest under `classes` by the name it gives it ("walker": "at://did/games.cavu.entityClass/rkey"), and its own classes may extend it by that name.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | cavu.games |
| Indexed |
Record
record · key anyProperties
description
stringmaxLength: 3000maxGraphemes: 300
extends
stringThe class name it extends, if any (resolved in the game that loads it).
maxLength: 64
fields
unknownOptional: the fields its entities carry, documented (name -> description), for authoring tools.
license
stringmaxLength: 128
A suggested name (games choose their own).
maxLength: 64
Lua source returning the class table. It sees the standard libraries, spairs, path_at, update, copy_list, ent.is_a / lookup / kind / raw and (client) ui, sprites, motion; nothing else.
maxLength: 200000