CloudBuilder C++ SDK  v3.0.0
Making social games is easy !
Classes | Typedefs
Match API

Classes

struct  CloudBuilder::CMatchEventListener
 
struct  CloudBuilder::CMatchManager
 
struct  CloudBuilder::CMatch
 

Typedefs

typedef CDelegate< void(eErrorCode aErrorCode, const CCloudResult *aResult, CMatch *)> CloudBuilder::CMatchResultHandler
 

Detailed Description

Special type for high level operations. Includes a match object that can be used for subsequent operations. Use MakeDelegate in inherit this.

class MyClass {
void Main() {
CMatchResultHandler *handler = MakeDelegate(this, &MyClass::MatchDone);
}
void MatchDone(eErrorCode errorCode, const CCloudResult *result, Match *) {
}
};
//
// Or
//
class MyClass {
void Main() {
struct MatchDone: CMatchResultHandler {
MatchDone() : CMatchResultHandler(this, &MatchDone::Done) {}
void Done(eErrorCode errorCode, const CCloudResult *result, Match *) {
// Match created.
}
};
CMatchResultHandler *handler = new MatchDone;
}
};