当前位置: 首页>>代码示例>>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;未经允许,请勿转载。