コード例 #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();
 }
コード例 #2
0
ファイル: MudConnection.cs プロジェクト: r-diggz/GalaMud
 public MudConnectionJson(MudServer server, Socket s, Dungeon d) : base(server, s, d)
 {
     ConnectionSocket = s;
     Interpreter      = new MudInterpreter(server, this, d);
 }