Skip to content

d3stiii/Unity.ServerQueryProtocol

Repository files navigation

Unity.ServerQueryProtocol

Unity.ServerQueryProtocol is a C#/.NET Core implementation of SQP (Server Query Protocol) for Unity Multiplay.

Examples

  • Create a ServerState.
  • Create a SqpServer by passing queryPort and serverState as arguments.
  • Call the sqpServer.Start() method to launch the SQP server.
var serverState = new ServerState
{
  Port = 25565,
  BuildId = "alpha v0.0.1",
  ServerName = "GameServer",
  CurrentPlayers = 2,
  GameMap = "TestMap",
  GameType = "Competitive",
  MaxPlayers = 10
};

const ushort queryPort = 8080;
var sqpServer = new SqpServer(queryPort, serverState);
sqpServer.Start();

Documentation

About

SQP (Server Query Protocol) C#/.NET Core implementation for Unity Multiplay Hosting

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages