Improve consistency of naming in 'invoke/access' pipeline.

This commit is contained in:
2025-06-13 21:03:13 -04:00
parent 676b5bd119
commit f150b14d30
13 changed files with 71 additions and 71 deletions

View File

@@ -8,28 +8,28 @@
//
// The actual contents of the datapack depends on the type of invocation:
//
// InvocationKind::INVALID:
// AccessKind::INVALID:
//
// Nothing.
//
// InvocationKind::LUA_CALL:
// AccessKind::LUA_CALL:
//
// A lua function call. The class name, the function name, and then
// the function arguments.
//
// InvocationKind::LUA_EXPR:
// AccessKind::INVOKE_LUA_EXPR:
//
// A block of lua source code, in plaintext.
//
// InvocationKind::FLUSH_PRINTS:
// AccessKind::INVOKE_FLUSH_PRINTS:
//
// Line number in ascii.
//
// InvocationKind::TICK:
// AccessKind::INVOKE_TICK:
//
// Nothing.
//
// InvocationKind::LUA_SOURCE:
// AccessKind::INVOKE_LUA_SOURCE:
//
// Packaged lua sourcecode. See drvutil::package_lua_source.
//
@@ -48,16 +48,16 @@
class Invocation : public eng::opnew {
public:
private:
InvocationKind kind_;
AccessKind kind_;
int64_t actor_;
int64_t place_;
eng::string datapack_;
public:
Invocation();
Invocation(InvocationKind kind, int64_t actor, int64_t place, std::string_view datapack);
Invocation(AccessKind kind, int64_t actor, int64_t place, std::string_view datapack);
bool valid() const { return kind_ != InvocationKind::INVALID; }
InvocationKind kind() const { return kind_; }
bool valid() const { return kind_ != AccessKind::INVALID; }
AccessKind kind() const { return kind_; }
int64_t actor() const { return actor_; }
int64_t place() const { return place_; }
const eng::string &datapack() const { return datapack_; }