45 lines
1.4 KiB
C
45 lines
1.4 KiB
C
|
|
#pragma once
|
||
|
|
#include "cocos2d.h"
|
||
|
|
#include "PlatformHeader.h"
|
||
|
|
#include "CallMission.h"
|
||
|
|
|
||
|
|
//////////////////////////////////////////////////////////////////////////
|
||
|
|
//
|
||
|
|
//////////////////////////////////////////////////////////////////////////
|
||
|
|
class IGameRecordSink
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
virtual ~IGameRecordSink(){}
|
||
|
|
virtual void onGPBackGameRecordList(tagPrivateRandTotalRecordList* pNetInfo){}
|
||
|
|
virtual void onGPBackGameTotalRecord(tagPrivateRandTotalRecord* pNetInfo){}
|
||
|
|
virtual void onGPBackGameRecordChild(tagPrivateRandRecordChild* pNetInfo){}
|
||
|
|
};
|
||
|
|
|
||
|
|
//////////////////////////////////////////////////////////////////////////
|
||
|
|
// 游戏记录
|
||
|
|
//////////////////////////////////////////////////////////////////////////
|
||
|
|
class GameRecordMission
|
||
|
|
: public CCallMission
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
GameRecordMission(const char* url, int port);
|
||
|
|
// 设置回调接口
|
||
|
|
void setMissionSink(IGameRecordSink* pIGPKefuMissionSink);
|
||
|
|
|
||
|
|
void GetGameRecordList(int iUserID, WORD wKindID);
|
||
|
|
void CB_GetGameRecordList(int iUserID, WORD wKindID);
|
||
|
|
void Net_GetGameRecordList(void* data, int dataSize);
|
||
|
|
|
||
|
|
void GetPrivateRandTotalRecord(int iRecordID);
|
||
|
|
void CB_PrivateRandTotalRecord(int iRecordID);
|
||
|
|
void Net_PrivateRandTotalRecord(void* data, int dataSize);
|
||
|
|
|
||
|
|
void GetPrivateRandRecordChild(int iRecordChildID);
|
||
|
|
void CB_PrivateRandRecordChild(int iRecordChildID);
|
||
|
|
void Net_PrivateRandRecordChild(void* data, int dataSize);
|
||
|
|
|
||
|
|
private:
|
||
|
|
// 回调
|
||
|
|
IGameRecordSink* mIGPGameRecordSink;
|
||
|
|
};
|