createRequest method
Creates a message object that can deserialize a request.
Implementation
$pb.GeneratedMessage createRequest($core.String method) {
switch (method) {
case 'PlayerConnect':
return $1.PlayerID();
case 'PlayerDisconnect':
return $1.PlayerID();
case 'SetPlayerCapacity':
return $1.Count();
case 'GetPlayerCapacity':
return $1.AlphaEmpty();
case 'GetPlayerCount':
return $1.AlphaEmpty();
case 'IsPlayerConnected':
return $1.PlayerID();
case 'GetConnectedPlayers':
return $1.AlphaEmpty();
default:
throw $core.ArgumentError('Unknown method: $method');
}
}