* StandardCharacter re-wrote to support the new Server code. Also added event method support for various states. * ConnectionManager re-wrote to support the new server. * Work on Log message importance started * INetworked.Connect now requires a Socket as its parameter. * StandardGame no longer has Properties for MaxConnections and MaxQueuedConnections. This is handle via StandardGame.Start() parameters. * CommandLogin command added. Initial check-in and not fully implemented.
42 lines
1 KiB
C#
42 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
using MudEngine.Core.Interface;
|
|
using MudEngine.Game;
|
|
using MudEngine.Game.Characters;
|
|
using MudEngine.Game.Environment;
|
|
using MudEngine.GameScripts;
|
|
|
|
namespace MudEngine.GameScripts.Commands
|
|
{
|
|
public class CommandLogin : ICommand
|
|
{
|
|
|
|
public string Name { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
public List<string> Help { get; set; }
|
|
|
|
public CommandLogin()
|
|
{
|
|
Help = new List<string>();
|
|
Name = "Login";
|
|
Description = "Account login command.";
|
|
}
|
|
|
|
public void Execute(string command, Game.Characters.StandardCharacter character)
|
|
{
|
|
character.SendMessage("Please enter character name: ");
|
|
String name = String.Empty;
|
|
|
|
while (String.IsNullOrEmpty(name))
|
|
{
|
|
name = character.GetInput();
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|