Skip to main content

MGI

Type Alias MGI 

Source
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

Fields

§piece: PieceId
§player: PlayerId
§

PieceIdLookupRev

For testing only

Fields

§player: PlayerId
§

ListPieces

§

AddPieces(PiecesSpec)

§

DeletePiece(PieceId)

§

DeletePieceAlias(String)

§

DefinePieceAlias

Fields

§alias: String
§target: Box<dyn PieceSpec>
§

ClearGame

§

ResetFromNamedSpec

Fields

§spec: String
§

ResetFromGameSpec

Fields

§spec_toml: String
§

ResetPlayerAccess(PlayerId)

§

RedeliverPlayerAccess(PlayerId)

§

JoinGame

Fields

§

UpdatePlayer

Fields

§player: PlayerId
§

LeaveGame(PlayerId)

Fields

Fields

§

ClearLog

§

SetACL