mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 13:23:56 -07:00
* 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.
27 lines
921 B
C++
27 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
|