Add invoke_choose and invoke_player to DrivenEngine. invoke_player is not fully implemented in World
This commit is contained in:
@@ -197,9 +197,27 @@ struct EngineWrapper {
|
||||
//
|
||||
void (*play_invoke_event_update)(EngineWrapper *w, double clock);
|
||||
|
||||
// Store the lua source code.
|
||||
// Send an invoke/KIND_PLAYER
|
||||
//
|
||||
void (*play_set_lua_source_pack)(EngineWrapper *w, uint32_t srcpklen, const char *srcpk);
|
||||
// This is the main pathway for the graphics engine to control the player
|
||||
// character.
|
||||
//
|
||||
void (*play_invoke_player)(EngineWrapper *w, int64_t place, uint32_t datapklen, const char *datapk);
|
||||
|
||||
// Send an invoke/KIND_CHOOSE
|
||||
//
|
||||
// This is the main pathway for the graphics engine to choose a menu
|
||||
// item or click a user interface button.
|
||||
//
|
||||
void (*play_invoke_choose)(EngineWrapper *w, int64_t place, uint32_t datapklen, const char *datapk);
|
||||
|
||||
// Send an invoke/KIND_LUA_SOURCE
|
||||
//
|
||||
// This is used to update the lua source at runtime, without stopping
|
||||
// the game. In addition to sending the invoke/KIND_LUA_SOURCE, it also
|
||||
// clears the rescan_lua_source flag.
|
||||
//
|
||||
void (*play_invoke_lua_source)(EngineWrapper *w, uint32_t srcpklen, const char *srcpk);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user