forked from 0ad/0ad
janwas
a69ac0dee9
- add convenience macros for config_db(CFG_GET_SYS_VAL) - VFSUtil::EnumDirEnts now uses flags instead of bool recursive - UNUSED() for params, UNUSED2 (<- need better name) for variables - config.h defines must be tested with #if (always defined) -> allows detecting misspellings thanks to compiler warnings - replace debug_assert(0) with debug_warn (its sole purpose) - replace ScriptingHost::ValueToInt et al with ToPrimitive - use nommgr.h to disable both mmgr and VC debug heap This was SVN commit r2585.
33 lines
1.1 KiB
C++
Executable File
33 lines
1.1 KiB
C++
Executable File
// JSInterface_Entity.h
|
|
//
|
|
// The interface layer between JavaScript code and the actual CEntity object.
|
|
//
|
|
// Usage: Used when manipulating objects of class 'Entity' in JavaScript.
|
|
//
|
|
// Mark Thompson mot20@cam.ac.uk / mark@wildfiregames.com
|
|
|
|
#include "scripting/ScriptingHost.h"
|
|
|
|
#ifndef JSI_ENTITY_INCLUDED
|
|
#define JSI_ENTITY_INCLUDED
|
|
|
|
/*
|
|
namespace JSI_Entity
|
|
{
|
|
JSBool toString( JSContext* cx, JSObject* obj, uintN argc, jsval* argv, jsval* rval );
|
|
JSBool order( JSContext* cx, JSObject* obj, uintN argc, jsval* argv, jsval* rval, bool queueOrder );
|
|
JSBool orderSingle( JSContext* cx, JSObject* obj, uintN argc, jsval* argv, jsval* rval );
|
|
JSBool orderQueued( JSContext* cx, JSObject* obj, uintN argc, jsval* argv, jsval* rval );
|
|
extern JSClass JSI_class;
|
|
extern JSPropertySpec JSI_props[];
|
|
extern JSFunctionSpec JSI_methods[];
|
|
JSBool getProperty( JSContext* cx, JSObject* obj, jsval id, jsval* vp );
|
|
JSBool setProperty( JSContext* cx, JSObject* obj, jsval id, jsval* vp );
|
|
JSBool construct( JSContext* cx, JSObject* obj, uint argc, jsval* argv, jsval* rval );
|
|
void finalize( JSContext* cx, JSObject* obj );
|
|
void init();
|
|
}
|
|
*/
|
|
|
|
#endif
|