mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-23 20:49:33 +08:00
20 lines
551 B
C#
20 lines
551 B
C#
using Milimoe.FunGame.Core.Library.Common.Network;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
|
|
namespace Milimoe.FunGame.Core.Library.Server
|
|
{
|
|
public abstract class BaseModel
|
|
{
|
|
public bool Running = false;
|
|
public ClientSocket? Socket = null;
|
|
public Task? Task = null;
|
|
public string ClientName = "";
|
|
|
|
public abstract bool Read(ClientSocket socket);
|
|
|
|
public abstract bool Send(ClientSocket socket, SocketMessageType type, params object[] objs);
|
|
|
|
public abstract void Start();
|
|
}
|
|
}
|