本文整理匯總了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;
}