當前位置: 首頁>>代碼示例>>C++>>正文


C++ AS3_ReturnAS3Var函數代碼示例

本文整理匯總了C++中AS3_ReturnAS3Var函數的典型用法代碼示例。如果您正苦於以下問題:C++ AS3_ReturnAS3Var函數的具體用法?C++ AS3_ReturnAS3Var怎麽用?C++ AS3_ReturnAS3Var使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了AS3_ReturnAS3Var函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: _wrap_BulletManager_spawnBullet

void _wrap_BulletManager_spawnBullet() {
  BulletManager *arg1 = (BulletManager *) 0 ;
  float arg2 ;
  float arg3 ;
  float arg4 ;
  float arg5 ;
  eNpcType arg6 ;
  
  {
    AS3_GetScalarFromVar(arg1, self);
  }
  {
    AS3_GetScalarFromVar(arg2, srcX);
  }
  {
    AS3_GetScalarFromVar(arg3, srcY);
  }
  {
    AS3_GetScalarFromVar(arg4, dstX);
  }
  {
    AS3_GetScalarFromVar(arg5, dstY);
  }
  {
    AS3_GetScalarFromVar(arg6, e);
  }
  (arg1)->spawnBullet(arg2,arg3,arg4,arg5,arg6);
  {
    
  }
  {
    AS3_ReturnAS3Var(undefined);
  }
}
開發者ID:colorspray,項目名稱:OmniDebuggerProject,代碼行數:34,代碼來源:ODGameLib_wrapper.cpp

示例2: _wrap_BulletManager_CheckIsHitNpc

void _wrap_BulletManager_CheckIsHitNpc() {
  BulletManager *arg1 = (BulletManager *) 0 ;
  float arg2 ;
  float arg3 ;
  float arg4 ;
  eNpcType arg5 ;
  bool result ;
  
  {
    AS3_GetScalarFromVar(arg1, self);
  }
  {
    AS3_GetScalarFromVar(arg2, posX);
  }
  {
    AS3_GetScalarFromVar(arg3, posY);
  }
  {
    AS3_GetScalarFromVar(arg4, radius);
  }
  {
    AS3_GetScalarFromVar(arg5, e);
  }
  result = (bool)(arg1)->CheckIsHitNpc(arg2,arg3,arg4,arg5);
  {
    AS3_DeclareVar(asresult, Boolean);
    AS3_CopyScalarToVar(asresult, result);
  }
  {
    AS3_ReturnAS3Var(asresult);
  }
}
開發者ID:colorspray,項目名稱:OmniDebuggerProject,代碼行數:32,代碼來源:ODGameLib_wrapper.cpp

示例3: _wrap_Bullet_CheckIsHitPlayer

void _wrap_Bullet_CheckIsHitPlayer() {
  Bullet *arg1 = (Bullet *) 0 ;
  float arg2 ;
  float arg3 ;
  float arg4 ;
  bool result ;
  
  {
    AS3_GetScalarFromVar(arg1, self);
  }
  {
    AS3_GetScalarFromVar(arg2, x);
  }
  {
    AS3_GetScalarFromVar(arg3, y);
  }
  {
    AS3_GetScalarFromVar(arg4, r);
  }
  result = (bool)(arg1)->CheckIsHitPlayer(arg2,arg3,arg4);
  {
    AS3_DeclareVar(asresult, Boolean);
    AS3_CopyScalarToVar(asresult, result);
  }
  {
    AS3_ReturnAS3Var(asresult);
  }
}
開發者ID:colorspray,項目名稱:OmniDebuggerProject,代碼行數:28,代碼來源:ODGameLib_wrapper.cpp

示例4: _wrap_feedShape

void _wrap_feedShape() {
    unsigned int *arg1 = (unsigned int *) 0 ;
    int arg2 ;
    int arg3 ;
    unsigned int arg4 ;

    {
        AS3_GetScalarFromVar(arg1, pixels);
    }
    {
        AS3_GetScalarFromVar(arg2, width);
    }
    {
        AS3_GetScalarFromVar(arg3, height);
    }
    {
        AS3_GetScalarFromVar(arg4, sid);
    }
    feedShape(arg1,arg2,arg3,arg4);
    {

    }
    {
        AS3_ReturnAS3Var(undefined);
    }
}
開發者ID:settinghead,項目名稱:tyful,代碼行數:26,代碼來源:polartreeapi_wrapper.c

示例5: _wrap_appendLayer

void _wrap_appendLayer() {
    unsigned int *arg1 = (unsigned int *) 0 ;
    unsigned int *arg2 = (unsigned int *) 0 ;
    int arg3 ;
    int arg4 ;
    bool arg5 ;

    {
        AS3_GetScalarFromVar(arg1, pixels);
    }
    {
        AS3_GetScalarFromVar(arg2, colorPixels);
    }
    {
        AS3_GetScalarFromVar(arg3, width);
    }
    {
        AS3_GetScalarFromVar(arg4, height);
    }
    {
        AS3_GetScalarFromVar(arg5, flip);
    }
    appendLayer(arg1,arg2,arg3,arg4,arg5);
    {

    }
    {
        AS3_ReturnAS3Var(undefined);
    }
}
開發者ID:settinghead,項目名稱:tyful,代碼行數:30,代碼來源:polartreeapi_wrapper.c

示例6: _wrap_Bullet_Init

void _wrap_Bullet_Init() {
  Bullet *arg1 = (Bullet *) 0 ;
  float arg2 ;
  float arg3 ;
  float arg4 ;
  float arg5 ;
  
  {
    AS3_GetScalarFromVar(arg1, self);
  }
  {
    AS3_GetScalarFromVar(arg2, srcx);
  }
  {
    AS3_GetScalarFromVar(arg3, srcy);
  }
  {
    AS3_GetScalarFromVar(arg4, dstx);
  }
  {
    AS3_GetScalarFromVar(arg5, dsty);
  }
  (arg1)->Init(arg2,arg3,arg4,arg5);
  {
    
  }
  {
    AS3_ReturnAS3Var(undefined);
  }
}
開發者ID:colorspray,項目名稱:OmniDebuggerProject,代碼行數:30,代碼來源:ODGameLib_wrapper.cpp

示例7: _wrap_slapShape

void _wrap_slapShape() {
    unsigned int *arg1 = (unsigned int *) 0 ;
    int arg2 ;
    int arg3 ;
    unsigned int arg4 ;
    SlapInfo *result ;

    {
        AS3_GetScalarFromVar(arg1, pixels);
    }
    {
        AS3_GetScalarFromVar(arg2, width);
    }
    {
        AS3_GetScalarFromVar(arg3, height);
    }
    {
        AS3_GetScalarFromVar(arg4, sid);
    }
    result = (SlapInfo *)slapShape(arg1,arg2,arg3,arg4);
    {
        AS3_DeclareVar(asresult, int);
        AS3_CopyScalarToVar(asresult, result);
    }
    {
        AS3_ReturnAS3Var(asresult);
    }
}
開發者ID:settinghead,項目名稱:tyful,代碼行數:28,代碼來源:polartreeapi_wrapper.c

示例8: md5String

/**
 * MD5 ("") = d41d8cd98f00b204e9800998ecf8427e
 * MD5 ("a") = 0cc175b9c0f1b6a831c399e269772661
 * MD5 ("abc") = 900150983cd24fb0d6963f7d28e17f72
 * MD5 ("message digest") = f96b697d7cb7938d525a2f31aaf161d0
 * MD5 ("abcdefghijklmnopqrstuvwxyz") = c3fcd3d76192e4007dfb496cca67e13b
 * MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") =
 * d174ab98d277d9f5a5611c2c9f419d9f
 * MD5 ("123456789012345678901234567890123456789012345678901234567890123456
 * 78901234567890") = 57edf4a22be3c955ac49da2e2107b67a
 */
void md5String(){
    const char *src = NULL;
    AS3_MallocString(src, input);

    std::string srcString(src);

    const char *result;

    hashwrapper *wrapper;

    wrapper = new md5wrapper();
    std::string md5 = wrapper->getHashFromString(srcString);

    result = md5.c_str();

    delete wrapper;

    // We can't just call AS3_Return(s) because s is not a scalar.
    // Instead we need to marshall the C string into AS3 and use
    // AS3_ReturnAS3Var().

    AS3_DeclareVar(myString, String);
    AS3_CopyCStringToVar(myString, result, 32);
    AS3_ReturnAS3Var(myString);
}
開發者ID:Leader138,項目名稱:liblog,代碼行數:36,代碼來源:as3api.cpp

示例9: _localvar_get

void _localvar_get()
{
	AS3::local::var * var;
	AS3_GetScalarFromVar(var, var_ptr);
	AS3_DeclareVar(obj, Object);
	AS3_CopyVarxxToVar(obj, *var);
	AS3_ReturnAS3Var(obj);
}
開發者ID:AntonioModer,項目名稱:Crossbridge-Recast-Navigation,代碼行數:8,代碼來源:localvar.cpp

示例10: as3_get_output_format

void as3_get_output_format()
{
    char *o_format = (char*) get_output_format();

    AS3_DeclareVar(outputFormat, String);
    AS3_CopyCStringToVar(outputFormat, o_format, strlen(o_format));
    AS3_ReturnAS3Var(outputFormat);
}
開發者ID:marstonstudio,項目名稱:crossUserMedia,代碼行數:8,代碼來源:as3api.c

示例11: as3_get_output_codec

void as3_get_output_codec()
{
    char *o_codec = (char*) get_output_codec();

    AS3_DeclareVar(outputCodec, String);
    AS3_CopyCStringToVar(outputCodec, o_codec, strlen(o_codec));
    AS3_ReturnAS3Var(outputCodec);
}
開發者ID:marstonstudio,項目名稱:crossUserMedia,代碼行數:8,代碼來源:as3api.c

示例12: _wrap_initCanvas

void _wrap_initCanvas() {
    initCanvas();
    {

    }
    {
        AS3_ReturnAS3Var(undefined);
    }
}
開發者ID:settinghead,項目名稱:tyful,代碼行數:9,代碼來源:polartreeapi_wrapper.c

示例13: _wrap_startRendering

void _wrap_startRendering() {
    startRendering();
    {

    }
    {
        AS3_ReturnAS3Var(undefined);
    }
}
開發者ID:settinghead,項目名稱:tyful,代碼行數:9,代碼來源:polartreeapi_wrapper.c

示例14: _wrap_pauseRendering

void _wrap_pauseRendering() {
    pauseRendering();
    {

    }
    {
        AS3_ReturnAS3Var(undefined);
    }
}
開發者ID:settinghead,項目名稱:tyful,代碼行數:9,代碼來源:polartreeapi_wrapper.c

示例15: _wrap_new_Player

void _wrap_new_Player() {
  Player *result ;
  
  result = (Player *)new Player();
  {
    AS3_DeclareVar(asresult, int);
    AS3_CopyScalarToVar(asresult, result);
  }
  {
    AS3_ReturnAS3Var(asresult);
  }
}
開發者ID:colorspray,項目名稱:OmniDebuggerProject,代碼行數:12,代碼來源:ODGameLib_wrapper.cpp


注:本文中的AS3_ReturnAS3Var函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。