游戏SDK框架
自由与束缚JavaJavaScript
这个作者很懒,什么都没留下…
展开
-
006-SDK框架之LYWSDKInterfaceProtocol.h
#ifndef LYWSDKInterfaceProtocol_h#define LYWSDKInterfaceProtocol_h#include "LYWSDKCallBackListener.h"class LYWSDKInterfaceProtocol{private: LYWSDKCallBackListener *m_listener;原创 2017-09-16 17:08:01 · 191 阅读 · 0 评论 -
007-SDK框架之LYWSDKInterfaceProtocol.cpp
#include "LYWSDKInterfaceProtocol.h"void LYWSDKInterfaceProtocol::receiveCallBack(int type, int code, const char* callBackJsonParam){ if(m_listener) { m_listener->lywSDKCall原创 2017-09-16 17:09:00 · 287 阅读 · 0 评论 -
008-SDK框架之LYWSDKPlatformManager.h
#ifndef LYWSDKPlatformManager_h#define LYWSDKPlatformManager_h#include "LYWSDKInterfaceProtocol.h"class LYWSDKPlatformManager{public: LYWSDKPlatformManager(); ~LYWSDKPlatformMa原创 2017-09-16 17:10:20 · 256 阅读 · 0 评论 -
011-SDK框架之LYWSDKProtocolIOS.h
#ifndef LYWSDKProtocolIOS_h#define LYWSDKProtocolIOS_h#include "LYWSDKInterfaceProtocol.h"#include "LYWSDKInterfaceIOS.h"class LYWSDKProtocolIOS: public LYWSDKInterfaceProtocol{pri原创 2017-10-31 18:00:22 · 172 阅读 · 0 评论 -
010-SDK框架之LYWSDKPlatform.cpp
#include "LYWSDKPlatform.h"static LYWSDKPlatform* _instance = NULL;LYWSDKPlatform::LYWSDKPlatform():_allCallBack(NULL){ }LYWSDKPlatform::~LYWSDKPlatform(){ if (_instance)原创 2017-09-16 17:24:16 · 223 阅读 · 0 评论 -
012-SDK框架之LYWSDKProtocolIOS.mm
#include "LYWSDKProtocolIOS.h"static LYWSDKProtocolIOS* _instance;LYWSDKProtocolIOS::LYWSDKProtocolIOS(){ }LYWSDKProtocolIOS::~LYWSDKProtocolIOS(){ if (_instance) {原创 2017-10-31 18:02:03 · 177 阅读 · 0 评论 -
013-SDK框架之LYWSDKPlatformManager.mm
#include "LYWSDKPlatformManager.h"#include "LYWSDKProtocolIOS.h"static LYWSDKPlatformManager* _instance = NULL;LYWSDKPlatformManager::LYWSDKPlatformManager(){ }LYWSDKPlatf原创 2017-10-31 18:20:19 · 290 阅读 · 0 评论 -
014-SDK框架LYWSDKDispatcher.h
#import #include "LYWSDKProtocolIOS.h"#define E_LYWSDKInit 0x50#define E_LYWSDKLogin 0x51#define E_LYWSDKPay 0x52#define E_LYWSDKError -1#define E_LYWSDKSuccess 0@interface L原创 2017-10-31 18:40:29 · 217 阅读 · 0 评论 -
005-SDK框架之LYWSDKCallBackListener.h
#ifndef LYWSDKCallBackListener_h#define LYWSDKCallBackListener_hclass LYWSDKCallBackListener{public: virtual void lywSDKCallBack(int type, int code, const char* callBackJsonParam) = 0;原创 2017-09-16 17:05:05 · 204 阅读 · 0 评论 -
009-SDK框架之LYWSDKPlatform.h
#ifndef LYWSDKPlatform_h#define LYWSDKPlatform_h#include #include #include "LYWSDKPlatformManager.h"#include "LYWSDKCallBackListener.h"typedef void (*CallBack) (int, int, const char*);原创 2017-09-16 17:23:35 · 256 阅读 · 0 评论 -
安智armeabi 和 armeabi-v7a 的库文件增加法则
在Android手机开发中经常需要使用动态连接库的调用。根据cpu不同只要分为arm构架和x86构架以及MIPS构架(MIPS暂时忽略);根据不同构架需要将不同的*.so文件放入不同不同文件中。但是需要注意以下几点:1、如果在libs 有多个文件夹比如 有三个x86 、 armeabi 、 armeabi-v7a 时,一定要保证每一个文件下的so种类是全的(常规的检查方式是查看名称和个转载 2015-08-17 15:03:06 · 630 阅读 · 0 评论 -
001-SDK框架之Unity游戏调用SDK
using UnityEngine;using LitJson;public class GameManager : MonoBehaviour {void Update() {// 1. 主线程Loop, 需要游戏每隔几帧调用一次 LYWSDKPlatform.Loop(); }public void CallLYWSDK原创 2017-09-04 11:03:04 · 364 阅读 · 0 评论 -
004-SDK框架之LYWSDKUnity3d.cpp
#include "LYWSDKUnity3d.h"void Init(char *jsonParam, CallBack callBack){ LYWSDKPlatform::getInstance()->init(jsonParam, callBack);}void Login(char *jsonParam){ LYWSDKPla原创 2017-09-04 11:33:38 · 245 阅读 · 0 评论 -
015-SDK框架LYWSDKDispatcher.mm
#import "LYWSDKDispatcher.h"@implementation LYWSDKDispatcherstatic LYWSDKDispatcher *dispatcher;+(LYWSDKDispatcher*) init{ if(dispatcher == nil) { dispatcher = [原创 2017-10-31 18:41:10 · 241 阅读 · 0 评论