Rason Networking |
RNet is a open source high-level API built on top of LiteNetLib, this mean you can add network multiplayer to your games without having to directly touch difficult stuff. Features :
See Also owr exemples : RNetAuthoritativeMovement , RNetChat, SimpleRPCsExemple. Servers in RNet : in Rason Networking you have : Game Server, Lobby Server, Game Server Spawner, Relay Game Server : - Game Server is a server runs on unity which runs the game logic once it closed all the players will got disconnected. It can be dedicated or run by a player and he play on it. - Lobby Server in Rason Networking is used to register running servers and retrieving the list of the servers from it. Also it used to save players information on it and accounts stuff (register/login) - Game Server Spawner is used to instantiate game servers for the clients if you want all the game logic run on the server. Exemple : Imagine you have 3 game server spawners in different regions num1 named "eu" located in europe, num2 named "us" located in america and num3 named "asia" located in asia all of them are registred in the lobby server , your european players want to play your game with smallest ping so the game send a request to the lobby server to create a new game server in "eu" game spawner, when the game is ready the spawner will tell the lobby server that the game is ready and the lobby server send the ip address of the server to the player then the player connects to the server. Here the servers are dedicated and they runs the game logic. - Relay Game Server is used server that runs multiple rooms inside it created by the players. Players connect to a relay game server then they create rooms inside it, players in the same room will see each other one of them is the called "host" of the room when he leaves an other player will be chosen to be the new host player, when the room is empty the room will be closed. Here the player doesn't need to start game server on his device (no port forwarding or nat punchthrough) insted he connects to the relay server which is hosted on the internet and create room inside it. Relay game server can be registered within lobby server's servers list. Lobby server, Game server spawner and Relay server can be standalone. RNet Quick Network Setup :
0 Comments
|