Manages the server list and saves it to a file for persistence across sessions.
More...
Manages the server list and saves it to a file for persistence across sessions.
◆ AddServer()
| void FMAR.Networking.ServerManager.AddServer |
( |
string | name, |
|
|
string | ip ) |
|
inline |
Add a server to the list with the given name and IP address.
- Parameters
-
| name | The name of the server. |
| ip | The IP address of the server. |
◆ GetAllServers()
| List< Server > FMAR.Networking.ServerManager.GetAllServers |
( |
| ) |
|
|
inline |
Get all servers in the list.
- Returns
- The list of servers.
◆ GetServer()
| Server FMAR.Networking.ServerManager.GetServer |
( |
string | name | ) |
|
|
inline |
Get a server matching the given name from the list.
- Parameters
-
| name | The name of the server. |
- Returns
- The server with the given name.
◆ LoadServersFromFile()
| void FMAR.Networking.ServerManager.LoadServersFromFile |
( |
| ) |
|
|
inline |
Load the server list from a file.
◆ RemoveServer()
| void FMAR.Networking.ServerManager.RemoveServer |
( |
string | name | ) |
|
|
inline |
Remove a server matching the given name from the list.
- Parameters
-
| name | The name of the server. |
◆ SaveServersToFile()
| void FMAR.Networking.ServerManager.SaveServersToFile |
( |
| ) |
|
|
inline |
Save the server list to a file.
◆ Instance
◆ Servers
| Server [] FMAR.Networking.ServerManager.Servers |
|
staticget |
Get the servers in the list.
◆ OnServerListLoaded
| Action<Server[]> FMAR.Networking.ServerManager.OnServerListLoaded |
|
static |
Event invoked when the server list is loaded from the file.
The documentation for this class was generated from the following file: