Documentation ¶
Index ¶
Constants ¶
View Source
const ( CommandTypeUseItem = CommandType(iota) CommandTypeDropItem CommandTypeSetFavorite CommandTypeToggleComponentFavorite CommandTypeSortInventory CommandTypeToggleQuest CommandTypeSetCustomMapMarker CommandTypeRemoveCustomMapMarker CommandTypeCheckFastTravel CommandTypeFastTravel CommandTypeMoveLocalMap CommandTypeZoomLocalMap CommandTypeToggleRadioStation CommandTypeRequestLocalMapSnapshot CommandTypeClearIdle )
Well-known commands
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Type CommandType `json:"type"` Args []any `json:"args"` ID int `json:"id"` }
Command is the type for a Pip Boy fallout 4 command
type CommandType ¶
type CommandType int
CommandType is the type for the command.type
func (CommandType) String ¶
func (i CommandType) String() string
type Commander ¶
type Commander struct { W io.ReadWriter // contains filtered or unexported fields }
Commander is an abstraction for writing commands
Click to show internal directories.
Click to hide internal directories.