Created 2 new projects that are basically rewrites of the other two, many many many things are missing. but I want to effectively be able to switch states and commands without having to create dependencies.
Currently you can connect and Reach the "ConnectState" from there anything you state will just be an "InvalidCommand"
This commit is contained in:
parent
bec840f5e4
commit
a0c406d482
37 changed files with 960 additions and 3 deletions
29
MudEngine/WinPC.Engine/Abstract.Networking/IServer.cs
Normal file
29
MudEngine/WinPC.Engine/Abstract.Networking/IServer.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
|
||||
namespace WinPC.Engine.Abstract.Networking
|
||||
{
|
||||
public enum ServerStatus
|
||||
{
|
||||
Stopped = 0,
|
||||
Starting = 1,
|
||||
Running = 2
|
||||
}
|
||||
|
||||
|
||||
public interface IServer
|
||||
{
|
||||
int Port { get; }
|
||||
int MaxConnections { get; }
|
||||
int MaxQueuedConnections { get; }
|
||||
bool Enabled { get; }
|
||||
|
||||
string MOTD { get; }
|
||||
|
||||
string ServerOwner { get; }
|
||||
|
||||
void Start(Int32 maxConnections, Int32 maxQueueSize);
|
||||
void Stop();
|
||||
void Running();
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue