Publisher | ByteCobra |
---|---|
File size | 216.34kB |
Number of files | 14 |
Latest version | 1 |
Latest release date | 2024-05-28 01:07:12 |
First release date | 2024-05-28 01:07:12 |
Supported Unity versions | 2018.4.2 or higher |
Cobra Servers is a Unity asset designed to simplify the integration of server lists for multiplayer games. This asset is compatible with any client-server network package, including Mirror, Unity Netcode for GameObjects and many more.
This asset is composed of two primary components:
Server-side API: A REST API written in C# that can be hosted either in Docker or as a standalone application. The API features easily adjustable rate limits, ensuring fair usage and preventing abuse by controlling the number of requests per time period.
Client-side Integration: A client-side component that facilitates interaction with the server list. This can be used to get all the servers or adding new servers to the list.
Features
The client-side code provides functionalities to add new servers to the list and retrieve all available servers. By default, each server entry includes the following information:
- Server Name
- Host
- Port
- Current Online Players
- Maximum Player Limit
Additionally, you can easily add any type of custom data you need, allowing for complete flexibility in managing server information.
The server availability verification feature ensures that each game server is checked for availability over both TCP and UDP protocols before being added to the server list. If a game server responds on either protocol, it is deemed valid and added to the list. This process helps maintain an accurate and reliable list of available servers.
Security
Each newly added server is assigned a unique ID, ensuring that servers are authenticated and preventing unauthorized impersonation. This system guarantees that only legitimate servers can appear on the list, maintaining the integrity and reliability of your multiplayer game environment.
Extensibility
Cobra Servers is designed with flexibility in mind. If additional data types are required, they can be added via an optional dictionary. JSON can be used to convert each value to a C# object, allowing for customized server information to be seamlessly integrated into your game.
Please import Cobra Logging before you import this package.