open_match 1.6.0+3 copy "open_match: ^1.6.0+3" to clipboard
open_match: ^1.6.0+3 copied to clipboard

gRPC generated client for Open Match - an open source game matchmaking framework that simplifies building a scalable and extensible Matchmaker.

example/open_match.dart

import 'package:collection/collection.dart';

void main(List<String> arguments) async {
  if (arguments.isEmpty) {
    throw Exception('Port argument required. Specify with `--port=YOUR_PORT`.');
  }
  final port = parseArguments(arguments);
  if (port is! int) {
    throw Exception('Invalid port specified.');
  }

  // Examples coming soon. See documentation.
  // https://open-match.dev/site/docs/guides/api/
}

const pattern = '--port=';
int? parseArguments(List<String> arguments) {
  final match =
  arguments.firstWhereOrNull((element) => element.startsWith(pattern));
  if (match == null) return null;

  return int.tryParse(match.split(pattern).last);
}
1
likes
140
points
1
downloads

Publisher

verified publishermarkvideon.dev

Weekly Downloads

gRPC generated client for Open Match - an open source game matchmaking framework that simplifies building a scalable and extensible Matchmaker.

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, fixnum, grpc, protobuf

More

Packages that depend on open_match