Add read-only game and league regulations to editor 0.5.2 (by Codex)
This commit is contained in:
1 parent
221478b629
commit
9f1928bd9e
27 files changed
+993
-22
No files matched your search
@@ -3,6 +3,7 @@
|
||||
#include "content/digest.hpp"
|
||||
#include "editor/comparison.hpp"
|
||||
#include "editor/images.hpp"
|
||||
#include "editor/regulations.hpp"
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
|
||||
@@ -459,6 +460,11 @@ Json Session::execute(const std::string &command, const Json &args) {
|
||||
}
|
||||
if (command == "rules")
|
||||
return w.rows("rules");
|
||||
if (command == "regulations") {
|
||||
auto result = regulation_view(w, args);
|
||||
result["revision"] = revision_;
|
||||
return result;
|
||||
}
|
||||
if (command == "validate")
|
||||
return {{"diagnostics", w.validate()}, {"revision", revision_}};
|
||||
if (command == "history") {
|
||||
|
||||
Reference in new issue
Block a user