streaming

package
v5.0.0-alpha.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeStartMission    = "start_mission"
	TypeEndMission      = "end_mission"
	TypeAddSoldier      = "add_soldier"
	TypeAddVehicle      = "add_vehicle"
	TypeAddMarker       = "add_marker"
	TypeSoldierState    = "soldier_state"
	TypeVehicleState    = "vehicle_state"
	TypeMarkerState     = "marker_state"
	TypeDeleteMarker    = "delete_marker"
	TypeFiredEvent      = "fired_event"
	TypeProjectileEvent = "projectile_event"
	TypeGeneralEvent    = "general_event"
	TypeHitEvent        = "hit_event"
	TypeKillEvent       = "kill_event"
	TypeChatEvent       = "chat_event"
	TypeRadioEvent      = "radio_event"
	TypeTelemetry       = "telemetry"
	TypeTimeState       = "time_state"
	TypeAce3Death       = "ace3_death"
	TypeAce3Unconscious = "ace3_unconscious"
	TypeAddPlaced       = "add_placed"
	TypePlacedEvent     = "placed_event"
)

Message type constants matching the streaming protocol.

Variables

AllMessageTypes lists every streaming message type.

Functions

This section is empty.

Types

type AckMessage

type AckMessage struct {
	Type string `json:"type"` // always "ack"
	For  string `json:"for"`  // the message type being acknowledged
}

AckMessage is the server's acknowledgement response.

type Envelope

type Envelope struct {
	Type    string          `json:"type"`
	Payload json.RawMessage `json:"payload"`
}

Envelope wraps all messages sent over the WebSocket.

type StartMissionPayload

type StartMissionPayload struct {
	Mission *core.Mission `json:"mission"`
	World   *core.World   `json:"world"`
}

StartMissionPayload carries mission and world data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL