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(); }
public MudConnectionJson(MudServer server, Socket s, Dungeon d) : base(server, s, d) { ConnectionSocket = s; Interpreter = new MudInterpreter(server, this, d); }