Improve consistency of naming in 'invoke/access' pipeline.
This commit is contained in:
@@ -117,7 +117,7 @@ public:
|
||||
|
||||
void send_invocation(const Invocation &inv) {
|
||||
if (channel_ == nullptr) {
|
||||
if ((!world_->is_authoritative()) && (inv.kind() == InvocationKind::LUA_SOURCE)) {
|
||||
if ((!world_->is_authoritative()) && (inv.kind() == AccessKind::INVOKE_LUA_SOURCE)) {
|
||||
// We have a client model, but no client connection. That means we're
|
||||
// in the process of shutting down a client model. The client model
|
||||
// is supposed to linger until the lua source is reread. Once we have
|
||||
@@ -179,7 +179,7 @@ public:
|
||||
}
|
||||
|
||||
virtual void do_luainvoke_command(std::string_view cmd) override {
|
||||
send_invocation(Invocation(InvocationKind::LUA_EXPR, actor_id_, actor_id_, cmd));
|
||||
send_invocation(Invocation(AccessKind::INVOKE_LUA_EXPR, actor_id_, actor_id_, cmd));
|
||||
}
|
||||
|
||||
virtual void do_luaprobe_command(std::string_view cmd) override {
|
||||
@@ -246,9 +246,9 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void event_call_function(InvocationKind kind, int64_t place_id, std::string_view datapk, StreamBuffer *retpk) override {
|
||||
virtual void event_access(AccessKind kind, int64_t place_id, std::string_view datapk, StreamBuffer *retpk) override {
|
||||
switch (kind) {
|
||||
case InvocationKind::LUA_PROBE: {
|
||||
case AccessKind::PROBE_LUA_CALL: {
|
||||
world_to_asynchronous();
|
||||
world_->probe_lua_call(actor_id_, place_id, datapk, retpk);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user