OnDeviceGameService class

An on device implementation of GameService

Warning implementation not complete or tested yet

Inheritance

Constructors

OnDeviceGameService(ProviderRef ref)

Properties

hashCode int
The hash code for this object.
no setterinherited
logger → Logger
finalinherited
ref ProviderRef
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sc StreamController<bool>
getter/setter pairinherited

Methods

connect() Stream<bool>
Connects to the backend
inherited
createGame(PlayerID playerID, GameConfig config) Future<String>
Creates a game on the server
override
deleteGame(PlayerID playerID, GameCode code) Future<bool>
Deletes the game on the server
override
disconnect() Future<void>
Disconnect from the backend
inherited
dispose() → void
Disposes of the GameService (i.e. disconnects from the server)
inherited
getGames(PlayerID playerID) Future<IList<GameInfo>>
Gets a list of games on the server
override
joinGame(PlayerID playerID, GameCode code, PlayerName name) Future<String?>
Registers the client with the game server
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

games Map<GameCode, LocalGame>
final