Class BuiltInCommands
The commands the engine itself understands (W27, W28). They sit in the catalog beside the application's, at reserved indices that never move.
public static class BuiltInCommands
- Inheritance
-
BuiltInCommands
- Inherited Members
Fields
ClientRegion
The name of the client-supplied viewpoint footprint.
public const string ClientRegion = "ClientRegion"
Field Value
ClientRegionIdx
The reserved index of ClientRegion.
public const int ClientRegionIdx = 0
Field Value
MaxRegionVertices
The most footprint vertices a region may carry: a horizon-clipped frustum needs 5–8, 16 is headroom.
public const int MaxRegionVertices = 16
Field Value
MinRegionVertices
The fewest footprint vertices a region may carry.
public const int MinRegionVertices = 3
Field Value
RegionAltitudeField
The ClientRegion field carrying the viewpoint altitude, in metres.
public const string RegionAltitudeField = "altitudeM"
Field Value
RegionBudgetField
The ClientRegion field carrying the client's byte budget, in KiB per second.
public const string RegionBudgetField = "budgetKiBps"
Field Value
RegionVerticesField
The ClientRegion field carrying the convex footprint polygon.
public const string RegionVerticesField = "vertices"
Field Value
SubscribeRequest
The name of the source-subscription request (#204). Reserved; its shape is decided when Phase 4 opens.
public const string SubscribeRequest = "SubscribeRequest"
Field Value
SubscribeRequestIdx
The reserved index of SubscribeRequest.
public const int SubscribeRequestIdx = 1
Field Value
Methods
CreateClientRegion(CatalogCodec)
Builds the ClientRegion command for a world whose positions use position: its vertices are quantized exactly like the
archetypes' positions, so a decoded region can never leave the world.
public static CatalogCommand CreateClientRegion(CatalogCodec position)
Parameters
positionCatalogCodecThe grid's Pos2 codec.
Returns
- CatalogCommand
The command definition: latest-wins, at most 5 per second.
HasClientRegionShape(CatalogCommand)
Whether command is shaped exactly as CreateClientRegion(CatalogCodec) builds it, for whatever position codec. The engine
interprets this command itself, so an application command that merely takes its name must be refused, not decoded as a region.
public static bool HasClientRegionShape(CatalogCommand command)
Parameters
commandCatalogCommandA command named ClientRegion.
Returns
ReservedIdx(string)
The reserved index of a built-in command, or −1 when name is an application command.
public static int ReservedIdx(string name)
Parameters
namestringThe command name.
Returns
- int
The reserved index, or −1.