Plugin API: minor change (adding parent frame) to support calling methods from hook. Also declare network time update argument to be const because good practice.

This commit is contained in:
Gilbert Clark 2014-09-04 20:41:44 -04:00
parent daae28c72e
commit 2446a942e0
5 changed files with 12 additions and 11 deletions

View file

@ -573,7 +573,7 @@ protected:
* ignored; best to use a \c TYPE_ANY). If the plugin did not handle
* the call, it must return null.
*/
virtual Val* HookCallFunction(const Func* func, val_list* args);
virtual Val* HookCallFunction(const Func* func, Frame *parent, val_list* args);
/**
* Hook into raising events. Whenever the script interpreter is about
@ -607,7 +607,7 @@ protected:
*
* @param networkt_time The new network time.
*/
virtual void HookUpdateNetworkTime(double network_time);
virtual void HookUpdateNetworkTime(const double network_time);
/**
* Hook for destruction of objects registered with