Move queued invocations down into lpxserver/lpxclient

This commit is contained in:
2024-09-03 22:44:22 -04:00
parent 3ed9a7ee2d
commit a6e68cbb35
4 changed files with 25 additions and 21 deletions

View File

@@ -147,6 +147,12 @@ public:
//
virtual void event_init(std::string_view srcpk, int argc, char *argv[]) = 0;
// The call-function callback. This is invoked whenever drv_call_function
// is called. This is the main entry point for "general" access into the
// DrivenEngine.
//
virtual void event_call_function(InvocationKind kind, int64_t place, std::string_view datapk) {};
// The update callback. You may override this in a subclass.
// This will be called whenever anything changes.
//
@@ -210,16 +216,11 @@ public:
// Set the prompt for the console.
//
void set_console_prompt(const eng::string &prompt);
// Fetches the invocation queue.
//
// This also clears the stored queue.
//
eng::vector<UniqueInvocation> get_queued_invocations();
// Rescan the lua source directory. The lua source directory is read once,
// automatically, at engine creation time. If you want to read it again,
// you must trigger a rescan. The rescan is not instantaneous.
// Set the flag to rescan the lua source directory. The lua source
// directory is read once, automatically, at engine creation time.
// If you want to read it again, you must trigger a rescan.
// The rescan is not instantaneous.
//
// DRIVER: this merely sets a flag, which the driver will notice later,
// causing the driver to update the lua source.
@@ -315,7 +316,6 @@ private:
int64_t visible_actor_id_;
util::IdVector scan_result_;
std::vector<util::SharedStdString> anim_queues_;
eng::vector<UniqueInvocation> queued_invocations_;
bool rescan_lua_source_;
double clock_;
bool stop_driver_;