2024-03-28 21:42:10 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Dungeoneer {
|
|
|
|
|
|
|
|
|
|
public sealed class Program {
|
|
|
|
|
|
2024-03-30 01:23:02 -04:00
|
|
|
|
public delegate void Command(IList<string> args);
|
|
|
|
|
public static Dictionary<string, Command> ReplCommands = new Dictionary<string, Command> {
|
2024-03-31 01:25:32 -04:00
|
|
|
|
{ "new", (Command)Dungeoneer.Command.New },
|
2024-03-30 01:23:02 -04:00
|
|
|
|
{ "roll", (Command)Dungeoneer.Command.Roll }
|
2024-03-31 01:25:32 -04:00
|
|
|
|
// TODO: "with"?
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public static Dictionary<string, Command> RollMacros = new Dictionary<string, Command> {
|
|
|
|
|
// TODO: disadvantage ( roll twice and take lowest )
|
|
|
|
|
// TODO: pool ( any of NdX > D => success )
|
2024-03-30 01:23:02 -04:00
|
|
|
|
};
|
|
|
|
|
|
2024-03-28 21:42:10 -04:00
|
|
|
|
public static void Main() {
|
|
|
|
|
Console.WriteLine("Starting");
|
|
|
|
|
|
2024-03-30 01:23:02 -04:00
|
|
|
|
Scripting.Run("repl.py");
|
2024-03-28 21:42:10 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|