Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"
#include "ScriptConversions.h"
#include "ScriptExceptions.h"
#include "ScriptExtraHeaders.h"
#include "graphics/Entity.h"
#include "lib/file/vfs/vfs_path.h"
#include "maths/Vector2D.h"
#include "ps/CLogger.h"
#include "ps/CStr.h"
#include <string>
Macros | |
#define | FAIL(msg) STMT(ScriptException::Raise(rq, msg); ScriptException::CatchPending(rq); return false) |
#define | FAIL_IF_NOT(c, v) |
#define | TOJSVAL_CHAR(N) |
Functions | |
template<> | |
bool | Script::FromJSVal< std::wstring > (const ScriptRequest &rq, JS::HandleValue v, std::wstring &out) |
template<> | |
bool | Script::FromJSVal< std::string > (const ScriptRequest &rq, JS::HandleValue v, std::string &out) |
template<> | |
void | Script::ToJSVal< std::wstring > (const ScriptRequest &rq, JS::MutableHandleValue ret, const std::wstring &val) |
template<> | |
void | Script::ToJSVal< std::string > (const ScriptRequest &rq, JS::MutableHandleValue ret, const std::string &val) |
template<> | |
void | Script::ToJSVal< std::vector< IComponent * > > (const ScriptRequest &rq, JS::MutableHandleValue ret, const std::vector< IComponent * > &val) |
template<> | |
bool | Script::FromJSVal< std::vector< Entity > > (const ScriptRequest &rq, JS::HandleValue v, std::vector< Entity > &out) |
#define FAIL | ( | msg | ) | STMT(ScriptException::Raise(rq, msg); ScriptException::CatchPending(rq); return false) |
#define FAIL_IF_NOT | ( | c, | |
v | |||
) |
#define TOJSVAL_CHAR | ( | N | ) |
bool Script::FromJSVal< std::string > | ( | const ScriptRequest & | rq, |
JS::HandleValue | v, | ||
std::string & | out | ||
) |
bool Script::FromJSVal< std::vector< Entity > > | ( | const ScriptRequest & | rq, |
JS::HandleValue | v, | ||
std::vector< Entity > & | out | ||
) |
bool Script::FromJSVal< std::wstring > | ( | const ScriptRequest & | rq, |
JS::HandleValue | v, | ||
std::wstring & | out | ||
) |
void Script::ToJSVal< std::string > | ( | const ScriptRequest & | rq, |
JS::MutableHandleValue | ret, | ||
const std::string & | val | ||
) |
void Script::ToJSVal< std::vector< IComponent * > > | ( | const ScriptRequest & | rq, |
JS::MutableHandleValue | ret, | ||
const std::vector< IComponent * > & | val | ||
) |
void Script::ToJSVal< std::wstring > | ( | const ScriptRequest & | rq, |
JS::MutableHandleValue | ret, | ||
const std::wstring & | val | ||
) |