forked from 0ad/0ad
Ykkrosh
13f2e3ca0c
* Fixed some bugs with incorrect macro usage (SDL_BYTE_ORDER vs SDL_BYTEORDER, {MSC,GCC}_VER vs {MSC,GCC}_VERSION, OS_WIN/OS_UNIX in projects where they're not defined). * Removed some redundant declarations of g_Console. * Removed some unnecessary semicolons. * Removed some unused variables. * Added throw specification to operator new. This was SVN commit r4698.
28 lines
921 B
C++
28 lines
921 B
C++
// JSInterface_Selection.h
|
|
//
|
|
// The JavaScript wrapper around collections of entities
|
|
// (notably the selection and groups objects)
|
|
|
|
#include "scripting/ScriptingHost.h"
|
|
|
|
#ifndef JSI_SELECTION_INCLUDED
|
|
#define JSI_SELECTION_INCLUDED
|
|
|
|
namespace JSI_Selection
|
|
{
|
|
void init();
|
|
void finalize( JSContext* cx, JSObject* obj );
|
|
|
|
JSBool getSelection( JSContext* context, JSObject* obj, jsval id, jsval* vp );
|
|
JSBool setSelection( JSContext* context, JSObject* obj, jsval id, jsval* vp );
|
|
JSBool getGroups( JSContext* context, JSObject* obj, jsval id, jsval* vp );
|
|
JSBool setGroups( JSContext* context, JSObject* obj, jsval id, jsval* vp );
|
|
|
|
JSBool isValidContextOrder( JSContext* context, JSObject* obj, uint argc, jsval* argv, jsval* rval );
|
|
JSBool getContextOrder( JSContext* context, JSObject* obj, jsval id, jsval* vp );
|
|
JSBool setContextOrder( JSContext* context, JSObject* obj, jsval id, jsval* vp );
|
|
|
|
}
|
|
|
|
#endif
|