009-SDK框架之LYWSDKPlatform.h

来源:互联网 发布:centos 升级glibc 编辑:程序博客网 时间:2024/05/16 14:10
#ifndef LYWSDKPlatform_h
#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);
};
原创粉丝点击