1
0
forked from 0ad/0ad
0ad/source/ps/scripting/JSInterface_Selection.h
janwas 73683b6109 # SwEng
. the massive renaming undertaking: camelCase functions -> PascalCase.
. add some cppdoc.
. minor additional renaming improvements: e.g. GetIsClosed -> IsClosed
. in entity code, replace constructs like "pvec = new vector; return
pvec; use *pvec; delete pvec" with a simple stack variable passed as
output parameter (avoid unnecessary dynamic allocs)
. timer: simpler handling of raw ticks vs normal timer (less #if)

This was SVN commit r5017.
2007-05-02 12:07:08 +00:00

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