Add RequestFrame() native (#412)

* Add RequestFrame() native

* Change underlying container from CQueue to ke::Deque

* CFrameAction: Fix PackageScript and MSVC project, wrap CFrameAction in AutoPtr
This commit is contained in:
KliPPy
2017-02-23 12:55:53 +01:00
committed by Vincent Herbet
parent 3a73e12550
commit 828e74e6c3
9 changed files with 169 additions and 0 deletions

View File

@ -3290,5 +3290,18 @@ forward OnAutoConfigsBuffered();
*/
native AutoExecConfig(bool:autoCreate = true, const name[] = "", const folder[] = "");
/**
* Creates a single use hook for the next frame.
*
* @param callback Function to be executed on the next frame.
* @param data Optional data to be passed to the callback function.
*
* @note Callback function prototype:
* public function(data)
*
* @noreturn
*/
native RequestFrame(const callback[], any:data = 0);
// Always keep this at the bottom of this file
#include <message_stocks>