Improve consistency of naming in 'invoke/access' pipeline.
This commit is contained in:
@@ -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_; }
|
||||
|
||||
Reference in New Issue
Block a user