Generalize DrivenEngine::drv_invoke

This commit is contained in:
2024-09-02 21:48:24 -04:00
parent 47a570064c
commit bf3e963949
11 changed files with 67 additions and 101 deletions

View File

@@ -152,6 +152,11 @@ public:
//
virtual void event_update() = 0;
// // The probe callback. You may override this in a subclass.
// // This will be called whenever the driver wants to probe the state of the world.
// //
// virtual void event_probe(InvocationKind kind, int64_t place, std::string_view datapack, StreamBuffer *retvals) = 0;
// Specify the set of listening ports.
// This can only be used during the init routine.
//
@@ -293,8 +298,7 @@ public:
void drv_notify_close(uint32_t chid, uint32_t len, const char *data);
uint32_t drv_notify_accept(uint32_t port);
void drv_call_event_update(double clock);
void drv_invoke_lua_call(int64_t place, uint32_t datapklen, const char *datapk);
void drv_invoke_lua_source(uint32_t srcpklen, const char *srcpk);
void drv_invoke(InvocationKind kind, int64_t place, uint32_t datapklen, const char *datapk);
private:
// Find a currently-unused channel ID. Channel IDs