Add define parameters and support aliases and definitions in action files

This commit is contained in:
cantyonion committed 2026-11-24 13:45:18 +08:00
1 parent fb8ef636bd
commit 0a6193f68e
12 files changed
+291 -63

No files matched your search

+3 -2
View File
@@ -1,6 +1,5 @@
#pragma once
#include "ActionFile.h"
#include <map>
#include <optional>
#include <string>
#include <string_view>
@@ -19,8 +18,10 @@ class ConsoleCommandParser
public:
ConsoleCommand Parse(std::string_view line);
const CommandBindings &GetBindings() const { return bindings; }
private:
std::map<std::string, std::string, std::less<>> aliases;
CommandBindings bindings;
};
std::string ConsoleHelp();
} // namespace Bilicraft