UnknownCommandReply

- Made it a kind-of `Command`
- Add compile time code to add hooks for runtime registration
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-17 19:39:09 +02:00
parent 5880974a69
commit 2501968c91
1 changed files with 4 additions and 2 deletions

View File

@ -1,14 +1,16 @@
module davinci.c2s.generic;
import davinci.base : Command;
import msgpack;
public final class UnknownCommandReply
public final class UnknownCommandReply : Command
{
private string offendingCommand;
this()
{
// TODO: This should be a mixin
registerClass!(typeof(this));
}
this(string offending)