#ifndef LYWSDKPlatform_h
#define LYWSDKPlatform_h
#include <stdio.h>
#include <stdlib.h>
#include "LYWSDKPlatformManager.h"
#include "LYWSDKCallBackListener.h"
class LYWSDKPlatform: LYWSDKCallBackListener
{
protected:
LYWSDKPlatform();
~LYWSDKPlatform();
public:
LYWSDKCallBack _allCallBack;
static LYWSDKPlatform* getInstance();
void init(char *jsonParam, LYWSDKCallBack callBack);
void login(char *jsonParam);
void pay(char *jsonParam);
void loop();
virtual void lywSDKCallBack(const char* callBackJsonMessage);
};
#define LYWSDKPlatform_h
#include <stdio.h>
#include <stdlib.h>
#include "LYWSDKPlatformManager.h"
#include "LYWSDKCallBackListener.h"
// 给游戏回调函数指针
typedef void (*LYWSDKCallBack) (const char*);class LYWSDKPlatform: LYWSDKCallBackListener
{
protected:
LYWSDKPlatform();
~LYWSDKPlatform();
public:
LYWSDKCallBack _allCallBack;
static LYWSDKPlatform* getInstance();
void init(char *jsonParam, LYWSDKCallBack callBack);
void login(char *jsonParam);
void pay(char *jsonParam);
void loop();
virtual void lywSDKCallBack(const char* callBackJsonMessage);
};