// 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); }
int IAGSEngine::IncrementManagedObjectRefCount(const char *address) { return ccAddObjectReference(GetManagedObjectKeyByAddress(address)); }