MenuCommand

@Serializable
sealed class MenuCommand : KrillApp(source)

Menu-command discriminators — used as KrillApp subtypes when emitting editor commands (Update / Delete / Expand / Focus) on the same SSE stream as real node events. They share a sealed parent so consumers can route them with one is MenuCommand check.

Inheritors

Types

Link copied to clipboard
@Serializable
data object Delete : MenuCommand
Link copied to clipboard
@Serializable
data object Expand : MenuCommand
Link copied to clipboard
@Serializable
data object Focus : MenuCommand
Link copied to clipboard
@Serializable
data object KeepBuildingSwarm : MenuCommand
Link copied to clipboard
@Serializable
data object Update : MenuCommand

Functions

Link copied to clipboard

true when this KrillApp is a MenuCommand subtype rather than a real node type. Used to skip menu-command discriminators in iteration code that only cares about real swarm nodes.