Beispiel #1
0
 public MudInterpreter(MudServer server, MudConnection con, Dungeon dungeon)
 {
     Server       = server;
     this.dungeon = dungeon;
     Connection   = con;
     status       = InterpreterState.NeworContinue;
     con.SendString("Create a new character or continue (N/C): ");
     Commands.Add("help", new Action <string>(HelpCommand));
     Commands.Add("status", new Action <string>(StatusCommand));
     Commands.Add("inventory", new Action <string>(InventoryCommand));
     Commands.Add("examine", new Action <string>(ExamineCommand));
     salt = GenerateSalt();
 }
Beispiel #2
0
 void RemoveConnection(MudConnection con)
 {
     Sockets.Remove(con.ConnectionSocket);
 }