コード例 #1
0
ファイル: game_init.cpp プロジェクト: CisBetter/ags
// Initializes dialog options rendering objects and registers them in the script system
void InitAndRegisterDialogOptions()
{
    ccRegisterManagedObject(&ccDialogOptionsRendering, &ccDialogOptionsRendering);

    dialogOptionsRenderingSurface = new ScriptDrawingSurface();
    dialogOptionsRenderingSurface->isLinkedBitmapOnly = true;
    long dorsHandle = ccRegisterManagedObject(dialogOptionsRenderingSurface, dialogOptionsRenderingSurface);
    ccAddObjectReference(dorsHandle);
}
コード例 #2
0
ファイル: acplatfm.cpp プロジェクト: smarinel/ags-web
int IAGSEngine::IncrementManagedObjectRefCount(const char *address) {
  return ccAddObjectReference(GetManagedObjectKeyByAddress(address));
}