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 -1
View File
@@ -1,5 +1,7 @@
#pragma once
#include "CommandBindings.h"
#include <chrono>
#include <cstddef>
#include <filesystem>
@@ -71,7 +73,7 @@ struct ActionProgram
// Clicks optionally accept entry [t|b|s|n|w|e] (or full face names), with
// the face immediately after entry. Existing shift and left-click destroy flags
// may appear before or after entry; omitted entry retains block-click behavior.
ActionProgram LoadActionFile(const std::filesystem::path &path);
ActionProgram LoadActionFile(const std::filesystem::path &path, CommandBindings bindings = {});
// Parse one console game instruction using the .act grammar, without file I/O.
// Blank/comment lines return nullopt. Wait/import require `run file.act` instead.