MudEngine:
- Changed Player[] array to a List<> Collection of PlayerBasics. This change is reflected across all Types. - Game now contains a Start() function. StartServer is now called from within here. - Game now has partial support for the Script Engine MudGame: - Game.StartServer has changed to Game.Start(). StartServer is called within Start().
This commit is contained in:
parent
0f87ac233a
commit
dbe1e693e5
5 changed files with 52 additions and 16 deletions
|
@ -26,13 +26,13 @@ namespace MudEngine.Commands
|
|||
{
|
||||
if (player is PlayerAdmin)
|
||||
{
|
||||
for (int i = 0; i < project.player.Length; i++)
|
||||
project.player[i].Save(project.player[i].Name + ".dat");
|
||||
for (int i = 0; i < project.PlayerCollection.Count; i++)
|
||||
project.PlayerCollection[i].Save(project.PlayerCollection[i].Name + ".dat");
|
||||
project.server.EndServer();
|
||||
if (project.ServerType == ProtocolType.Tcp)
|
||||
project.server.InitializeTCP(555, ref project.player);
|
||||
project.server.InitializeTCP(555, ref project.PlayerCollection);
|
||||
else
|
||||
project.server.InitializeUDP(555, ref project.player);
|
||||
project.server.InitializeUDP(555, ref project.PlayerCollection);
|
||||
return new CommandResults("Server Restarted.");
|
||||
}
|
||||
return new CommandResults("Access Denied.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue