pub type MGI = MgmtGameInstruction;Aliased Type§
pub enum MGI {
Show 27 variants
Noop,
Info,
SetTableSize(PosC<i32>),
SetTableColour(ColourSpec),
InsnMark(Box<[u8]>),
Synch,
SynchLog,
PieceIdLookupFwd {
piece: PieceId,
player: PlayerId,
},
PieceIdLookupRev {
vpid: VisiblePieceId,
player: PlayerId,
},
ListPieces,
AddPieces(PiecesSpec),
DeletePiece(PieceId),
DeletePieceAlias(String),
DefinePieceAlias {
alias: String,
target: Box<dyn PieceSpec>,
},
ClearGame {},
ResetFromNamedSpec {
spec: String,
},
ResetFromGameSpec {
spec_toml: String,
},
ResetPlayerAccess(PlayerId),
RedeliverPlayerAccess(PlayerId),
JoinGame {
details: MgmtPlayerDetails,
},
UpdatePlayer {
player: PlayerId,
details: MgmtPlayerDetails,
},
LeaveGame(PlayerId),
SetLinks(HashMap<LinkKind, UrlSpec>),
RemoveLink {
kind: LinkKind,
},
SetLink {
kind: LinkKind,
url: UrlSpec,
},
ClearLog,
SetACL {
acl: Acl<TablePermission>,
},
}Variants§
Noop
Info
SetTableSize(PosC<i32>)
SetTableColour(ColourSpec)
InsnMark(Box<[u8]>)
Synch
For testing, mostly.
SynchLog
PieceIdLookupFwd
For testing only
PieceIdLookupRev
For testing only
ListPieces
AddPieces(PiecesSpec)
DeletePiece(PieceId)
DeletePieceAlias(String)
DefinePieceAlias
ClearGame
ResetFromNamedSpec
ResetFromGameSpec
ResetPlayerAccess(PlayerId)
RedeliverPlayerAccess(PlayerId)
JoinGame
Fields
§
details: MgmtPlayerDetailsUpdatePlayer
LeaveGame(PlayerId)
SetLinks(HashMap<LinkKind, UrlSpec>)
RemoveLink
SetLink
ClearLog
SetACL
Fields
§
acl: Acl<TablePermission>