本文整理汇总了C++中ARG_NUMBER函数的典型用法代码示例。如果您正苦于以下问题:C++ ARG_NUMBER函数的具体用法?C++ ARG_NUMBER怎么用?C++ ARG_NUMBER使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ARG_NUMBER函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: js_centreView
static QScriptValue js_centreView(QScriptContext *context, QScriptEngine *engine)
{
ARG_COUNT_EXACT(2);
ARG_NUMBER(0);
ARG_NUMBER(1);
return QScriptValue();
}
示例2: js_safeDest
static QScriptValue js_safeDest(QScriptContext *context, QScriptEngine *)
{
ARG_COUNT_EXACT(3);
ARG_NUMBER(0);
ARG_NUMBER(1);
ARG_NUMBER(2);
return QScriptValue(true);
}
示例3: js_setAssemblyPoint
static QScriptValue js_setAssemblyPoint(QScriptContext *context, QScriptEngine *engine)
{
ARG_COUNT_EXACT(3);
ARG_STRUCT(0);
ARG_NUMBER(1);
ARG_NUMBER(2);
return QScriptValue(true);
}
示例4: js_droidCanReach
static QScriptValue js_droidCanReach(QScriptContext *context, QScriptEngine *)
{
ARG_COUNT_EXACT(3);
ARG_DROID(0);
ARG_NUMBER(1);
ARG_NUMBER(2);
return QScriptValue(true);
}
示例5: js_addStructure
static QScriptValue js_addStructure(QScriptContext *context, QScriptEngine *)
{
ARG_COUNT_EXACT(4);
ARG_NUMBER(0);
ARG_PLAYER(1);
ARG_NUMBER(2);
ARG_NUMBER(3);
return QScriptValue(true);
}
示例6: js_orderDroidLoc
static QScriptValue js_orderDroidLoc(QScriptContext *context, QScriptEngine *)
{
ARG_COUNT_EXACT(4);
ARG_DROID(0);
ARG_ORDER(1);
ARG_NUMBER(2);
ARG_NUMBER(3);
return QScriptValue(true);
}
示例7: js_distBetweenTwoPoints
static QScriptValue js_distBetweenTwoPoints(QScriptContext *context, QScriptEngine *engine)
{
ARG_COUNT_EXACT(4);
ARG_NUMBER(0);
ARG_NUMBER(1);
ARG_NUMBER(2);
ARG_NUMBER(3);
return QScriptValue(10);
}
示例8: js_setScrollParams
static QScriptValue js_setScrollParams(QScriptContext *context, QScriptEngine *)
{
ARG_COUNT_EXACT(4);
ARG_NUMBER(0);
ARG_NUMBER(1);
ARG_NUMBER(2);
ARG_NUMBER(3);
return QScriptValue();
}
示例9: js_setNoGoArea
static QScriptValue js_setNoGoArea(QScriptContext *context, QScriptEngine *)
{
ARG_COUNT_EXACT(5);
ARG_NUMBER(0);
ARG_NUMBER(1);
ARG_NUMBER(2);
ARG_NUMBER(3);
ARG_PLAYER(4);
return QScriptValue(true);
}
示例10: js_groupAddArea
static QScriptValue js_groupAddArea(QScriptContext *context, QScriptEngine *engine)
{
ARG_COUNT_EXACT(5);
ARG_NUMBER(0);
ARG_NUMBER(1);
ARG_NUMBER(2);
ARG_NUMBER(3);
ARG_NUMBER(4);
return QScriptValue();
}
示例11: js_playSound
static QScriptValue js_playSound(QScriptContext *context, QScriptEngine *engine)
{
ARG_COUNT_VAR(1, 4);
ARG_STRING(0);
if (context->argumentCount() != 1)
{
SCRIPT_ASSERT(context, context->argumentCount() == 4, "Arguments must be either 1 or 4");
ARG_NUMBER(1);
ARG_NUMBER(2);
ARG_NUMBER(3);
}
return QScriptValue();
}
示例12: js_setDroidExperience
static QScriptValue js_setDroidExperience(QScriptContext *context, QScriptEngine *)
{
ARG_COUNT_EXACT(2);
ARG_DROID(0);
ARG_NUMBER(1);
return QScriptValue();
}
示例13: js_groupAddDroid
static QScriptValue js_groupAddDroid(QScriptContext *context, QScriptEngine *engine)
{
ARG_COUNT_EXACT(2);
ARG_NUMBER(0);
ARG_DROID(1);
return QScriptValue();
}
示例14: js_setPower
static QScriptValue js_setPower(QScriptContext *context, QScriptEngine *engine)
{
ARG_COUNT_VAR(1, 2);
ARG_NUMBER(0);
if (context->argumentCount() > 1)
{
ARG_PLAYER(1);
}
return QScriptValue();
}
示例15: js_enumGroup
static QScriptValue js_enumGroup(QScriptContext *context, QScriptEngine *engine)
{
ARG_COUNT_EXACT(1);
ARG_NUMBER(0);
QScriptValue result = engine->newArray(3);
for (int i = 0; i < 3; i++)
{
result.setProperty(i, convDroid(engine));
}
return result;
}