mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-26 05:45:36 +00:00
Expose entity template data to GUI
This was SVN commit r7287.
This commit is contained in:
@@ -115,6 +115,14 @@ template<> jsval ScriptInterface::ToJSVal<CParamNode>(JSContext* cx, CParamNode
|
||||
return OBJECT_TO_JSVAL(obj);
|
||||
}
|
||||
|
||||
template<> jsval ScriptInterface::ToJSVal<const CParamNode*>(JSContext* cx, const CParamNode* const& val)
|
||||
{
|
||||
if (val)
|
||||
return ToJSVal(cx, *val);
|
||||
else
|
||||
return JSVAL_VOID;
|
||||
}
|
||||
|
||||
template<> bool ScriptInterface::FromJSVal<CColor>(JSContext* cx, jsval v, CColor& out)
|
||||
{
|
||||
ScriptInterface::LocalRootScope scope(cx);
|
||||
|
||||
Reference in New Issue
Block a user