A command as defineCommand returns it, which a plugin’s commands
holds and definePlugin makes a CommandHandle of.
| Type Parameter |
Default type |
Fields extends CommandFields |
CommandFields |
Reason extends string |
string |
Returns extends ReturnFields | undefined |
ReturnFields | undefined |
ActsThrough extends boolean |
boolean |
EndsWithLevel extends boolean |
boolean |
Predicted extends boolean |
boolean |
EndsWithMatch extends boolean |
boolean |
| Property |
Modifier |
Type |
Description |
burst |
readonly |
number |
- |
endsWithLevel? |
readonly |
EndsWithLevel |
Whether its lifetime is Level: what its refusals’ type reads, kept as a flag so a declaration’s type names no enum member. |
endsWithMatch? |
readonly |
EndsWithMatch |
Whether its lifetime is Match, kept as a flag as endsWithLevel is. |
entity |
readonly |
ActsThrough |
- |
fields |
readonly |
Fields |
- |
keys |
readonly |
readonly KeyCode[] |
The keys and touch button that send it. |
lateSeconds |
readonly |
number |
How late a predicted command may reach the room and still run, in seconds: countLateTicks reads it in a room’s ticks. |
lifetime |
readonly |
CommandLifetime |
- |
perSecond |
readonly |
number |
- |
predicted |
readonly |
Predicted |
- |
refusals |
readonly |
readonly Reason[] |
- |
returns |
readonly |
Returns |
- |
rewind |
readonly |
RewindBounds | null |
The bounds its view step is held to; the engine’s where null. |
timeoutSeconds |
readonly |
number |
- |
touch? |
readonly |
TouchButton |
- |