C4 Engine
C4 Engine API Documentation

Completable::SetCompletionCookie

Defined in:  TSCompletable.h
Sets the cookie that is passed to the completion callback function.
Prototype

void SetCompletionCookie(void *cookie);

Parameters
cookie The cookie that is passed to the completion callback function as its last parameter.
Description
The SetCompletionCookie function sets the cookie that is passed to the completion callback function for an object that inherits from the Completable class template. When a subclass completes a task and needs to notify the user of the object that the task has completed, it calls the Completable::HandleCompletion function.
See Also

Completable::GetCompletionCallback

Completable::SetCompletionCallback

Completable::GetCompletionCookie

Completable::HandleCompletion