baseline: OpenMU upstream b5a0961 (fresh source)

This commit is contained in:
Acentech Dev
2026-07-14 19:00:35 +03:00
parent 450402e47d
commit 36fc125d5c
11968 changed files with 748705 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
// <copyright file="IGameServerStateObserver.cs" company="MUnique">
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
// </copyright>
namespace MUnique.OpenMU.Interfaces;
using System.Net;
/// <summary>
/// An interface for an object which observes the state of game servers.
/// </summary>
public interface IGameServerStateObserver
{
/// <summary>
/// Registers the game server, so that it can be accessed through the connect server.
/// </summary>
/// <param name="gameServer">The game server information.</param>
/// <param name="publicEndPoint">The public end point.</param>
void RegisterGameServer(ServerInfo gameServer, IPEndPoint publicEndPoint);
/// <summary>
/// Un-registers the game server from the observer.
/// </summary>
/// <param name="gameServerId">The game server identifier.</param>
void UnregisterGameServer(ushort gameServerId);
/// <summary>
/// Is called when the number of <see cref="ServerInfo.CurrentConnections"/> changed for a server.
/// </summary>
/// <param name="serverId">The server id.</param>
/// <param name="currentConnections">The number of current connections, <see cref="ServerInfo.CurrentConnections"/>.</param>
void CurrentConnectionsChanged(ushort serverId, int currentConnections);
}