mirror of
https://github.com/project-redbud/FunGame-Server.git
synced 2025-04-24 04:59:40 +08:00

* 添加 Web API 和 RESTful API 模式; * 添加 SQLite 模式; * 添加 ISocketMessageProcessor 和 ISocketListener<> 接口,用于统一数据访问; * 重做了 ISocketModel; * 完善了 WebSocket 的连接模式。
23 lines
570 B
C#
23 lines
570 B
C#
using Milimoe.FunGame.Core.Api.Utility;
|
|
using Milimoe.FunGame.Core.Interface.Base;
|
|
using Milimoe.FunGame.Core.Library.Common.Network;
|
|
|
|
namespace Milimoe.FunGame.WebAPI.Architecture
|
|
{
|
|
public class WebAPIListener : ISocketListener<ServerWebSocket>
|
|
{
|
|
public string Name => "WebAPIListener";
|
|
|
|
public ConcurrentModelList<IServerModel> ClientList { get; } = [];
|
|
|
|
public ConcurrentModelList<IServerModel> UserList { get; } = [];
|
|
|
|
public List<string> BannedList { get; } = [];
|
|
|
|
public void Close()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|