Merge branch '接入SDK' into master_develop
commit
64ff767121
|
|
@ -325,6 +325,7 @@ GameObject:
|
||||||
- component: {fileID: 57277738265262265}
|
- component: {fileID: 57277738265262265}
|
||||||
- component: {fileID: 1362306110787991495}
|
- component: {fileID: 1362306110787991495}
|
||||||
- component: {fileID: 3471622135844523395}
|
- component: {fileID: 3471622135844523395}
|
||||||
|
- component: {fileID: 3471622135844523396}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: SDKConfig
|
m_Name: SDKConfig
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
|
|
@ -345,3 +346,16 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
appid: wjtsq7xrwb48t2uw
|
appid: wjtsq7xrwb48t2uw
|
||||||
|
--- !u!114 &3471622135844523396
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3471622135844523394}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d7bc9cc33d9f7284590ba57b9743fb33, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
appid: 261348dcd3
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,13 @@ public class App : UnitySingleton<App>
|
||||||
return TapDBManager.Instance;
|
return TapDBManager.Instance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static BuglyManager BuglyMgr
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return BuglyManager.Instance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//public static SoundManager SoundMgr {
|
//public static SoundManager SoundMgr {
|
||||||
// get {
|
// get {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
||||||
|
using UnityEngine;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System;
|
||||||
|
using GameCore;
|
||||||
|
namespace GameLogic
|
||||||
|
{
|
||||||
|
// 数数 数据平台
|
||||||
|
public class BuglyConfig : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
public string appid = "";
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
BuglyManager.Instance.SetAppId(appid);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public class BuglyManager : UnitySingleton<BuglyManager>
|
||||||
|
{
|
||||||
|
public static string appId = "";
|
||||||
|
|
||||||
|
public void SetAppId(string appId)
|
||||||
|
{
|
||||||
|
BuglyManager.appId = appId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// bugly
|
||||||
|
if(appId == "")
|
||||||
|
{
|
||||||
|
appId = VersionManager.Instance.GetVersionInfo("buglyId");
|
||||||
|
}
|
||||||
|
Debug.Log("Bugly Init: " + appId);
|
||||||
|
BuglyAgent.InitWithAppId(appId);
|
||||||
|
BuglyAgent.EnableExceptionHandler();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d7bc9cc33d9f7284590ba57b9743fb33
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -11,10 +11,7 @@ namespace GameLogic
|
||||||
public string appid = "";
|
public string appid = "";
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
string channel = VersionManager.Instance.GetVersionInfo("channel");
|
TapDBManager.Instance.SetAppId(appid);
|
||||||
string subChannel = VersionManager.Instance.GetVersionInfo("subChannel");
|
|
||||||
string v = VersionManager.Instance.GetVersionInfo("version");
|
|
||||||
TapDBManager.Instance.Init(appid, channel+"_"+ subChannel, v);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnApplicationPause(bool pauseStatus)
|
void OnApplicationPause(bool pauseStatus)
|
||||||
|
|
@ -39,18 +36,35 @@ namespace GameLogic
|
||||||
public static string channel = "";
|
public static string channel = "";
|
||||||
public static string version = "";
|
public static string version = "";
|
||||||
|
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
|
||||||
|
string channel = VersionManager.Instance.GetVersionInfo("channel");
|
||||||
|
string subChannel = VersionManager.Instance.GetVersionInfo("subChannel");
|
||||||
|
string version = VersionManager.Instance.GetVersionInfo("version");
|
||||||
|
|
||||||
|
TapDBManager.channel = channel + "_" + subChannel;
|
||||||
|
TapDBManager.version = version;
|
||||||
|
}
|
||||||
|
|
||||||
public void Init(string appId, string channel, string version)
|
public void Init(string appId, string channel, string version)
|
||||||
{
|
{
|
||||||
|
|
||||||
TapDBManager.appId = appId;
|
TapDBManager.appId = appId;
|
||||||
TapDBManager.channel = channel;
|
TapDBManager.channel = channel;
|
||||||
TapDBManager.version = version;
|
TapDBManager.version = version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetAppId(string appId)
|
||||||
|
{
|
||||||
|
TapDBManager.appId = appId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void OnStart()
|
public void OnStart()
|
||||||
{
|
{
|
||||||
Debug.LogWarning("TapDBManager:OnStart " + appId);
|
Debug.LogWarning("TapDBManager:OnStart " + appId);
|
||||||
TapDB.onStart(appId, channel, version);
|
TapDB.onStart(TapDBManager.appId, TapDBManager.channel, TapDBManager.version);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetUser(string userId)
|
public void SetUser(string userId)
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,19 @@ namespace GameLogic
|
||||||
foreach (string ss in kvs)
|
foreach (string ss in kvs)
|
||||||
{
|
{
|
||||||
string[] kv = ss.Split('#');
|
string[] kv = ss.Split('#');
|
||||||
if (kv[2] == "1")
|
if (kv[2] == "1")//数字
|
||||||
{
|
{
|
||||||
d.Add(kv[0], Convert.ToInt32(kv[1]));
|
d.Add(kv[0], Convert.ToInt32(kv[1]));
|
||||||
}
|
}
|
||||||
|
else if(kv[2] == "2")//数组
|
||||||
|
{
|
||||||
|
d.Add(kv[0], ss.Split(','));
|
||||||
|
}
|
||||||
|
else if (kv[2] == "3")//日期
|
||||||
|
{
|
||||||
|
var startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));//当地时区
|
||||||
|
d.Add(kv[0], startTime.AddSeconds(Convert.ToInt32(kv[1])));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
d.Add(kv[0], kv[1]);
|
d.Add(kv[0], kv[1]);
|
||||||
|
|
@ -43,18 +52,16 @@ namespace GameLogic
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Awake()
|
public void Init()
|
||||||
{
|
{
|
||||||
// 以时间戳校准 SDK 时间
|
// 以时间戳校准 SDK 时间
|
||||||
//ThinkingAnalyticsAPI.CalibrateTime(1585555578000);
|
//ThinkingAnalyticsAPI.CalibrateTime(1585555578000);
|
||||||
ThinkingAnalyticsAPI.CalibrateTimeWithNtp("ntp.aliyun.com");
|
ThinkingAnalyticsAPI.CalibrateTimeWithNtp("ntp.aliyun.com");
|
||||||
}
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
// 开启自动采集启动和关闭事件
|
// 开启自动采集启动和关闭事件
|
||||||
ThinkingAnalyticsAPI.EnableAutoTrack(AUTO_TRACK_EVENTS.ALL);
|
ThinkingAnalyticsAPI.EnableAutoTrack(AUTO_TRACK_EVENTS.ALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 校对时间
|
// 校对时间
|
||||||
public void CalibrateTime(long time)
|
public void CalibrateTime(long time)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,6 @@ namespace SDK
|
||||||
AndroidDeviceInfo.Instance.DeviceInit();
|
AndroidDeviceInfo.Instance.DeviceInit();
|
||||||
// 屏幕适配
|
// 屏幕适配
|
||||||
NotchScreenUtil.Instance.Init();
|
NotchScreenUtil.Instance.Init();
|
||||||
// bugly
|
|
||||||
BuglyAgent.InitWithAppId(VersionManager.Instance.GetVersionInfo("buglyId"));
|
|
||||||
BuglyAgent.EnableExceptionHandler();
|
|
||||||
// 初始化
|
// 初始化
|
||||||
Init();
|
Init();
|
||||||
IsInit = true;
|
IsInit = true;
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ local ManagerNames = {
|
||||||
"DataCenterService/DataCenterManager",
|
"DataCenterService/DataCenterManager",
|
||||||
"DataCenterService/ThinkingAnalyticsManager",
|
"DataCenterService/ThinkingAnalyticsManager",
|
||||||
"DataCenterService/TapDBManager",
|
"DataCenterService/TapDBManager",
|
||||||
|
"DataCenterService/BuglyManager",
|
||||||
-- 游戏设置管理
|
-- 游戏设置管理
|
||||||
"Setting/SettingManager",
|
"Setting/SettingManager",
|
||||||
--通信管理,所有的通信接口
|
--通信管理,所有的通信接口
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ end
|
||||||
|
|
||||||
function Network:ReceiveClientHeartBeat(buffer)
|
function Network:ReceiveClientHeartBeat(buffer)
|
||||||
local time = buffer:ReadIntToByte()
|
local time = buffer:ReadIntToByte()
|
||||||
Log("-------ReceiveClientHeartBeat----- time: "..time)
|
-- Log("-------ReceiveClientHeartBeat----- time: "..time)
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.Network.OnReceiveHeartBeat, self, time)
|
Game.GlobalEvent:DispatchEvent(GameEvent.Network.OnReceiveHeartBeat, self, time)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
BuglyManager = {}
|
||||||
|
local this = BuglyManager
|
||||||
|
function this.Initialize()
|
||||||
|
if AppConst.isSDK then
|
||||||
|
App.BuglyMgr:Init()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return BuglyManager
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e359c6a29a063ec4aa751b691bcc27d8
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -2,12 +2,7 @@
|
||||||
local this = TapDBManager
|
local this = TapDBManager
|
||||||
function this.Initialize()
|
function this.Initialize()
|
||||||
if AppConst.isSDK then
|
if AppConst.isSDK then
|
||||||
local appId = "wjtsq7xrwb48t2uw"
|
App.TBDMgr:Init()
|
||||||
local channel = VersionManager:GetVersionInfo("channel")
|
|
||||||
local subChannel = VersionManager:GetVersionInfo("subChannel")
|
|
||||||
local version = VersionManager:GetVersionInfo("version")
|
|
||||||
Debug.log("TapDBManager init: "..appId.."|"..channel.."_"..subChannel.."|"..version)
|
|
||||||
App.TBDMgr:Init(appId, channel.."_"..subChannel, version)
|
|
||||||
App.TBDMgr:OnStart()
|
App.TBDMgr:OnStart()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,17 @@ local function _DicToStr(data)
|
||||||
if index ~= 1 then
|
if index ~= 1 then
|
||||||
str = str .."|"
|
str = str .."|"
|
||||||
end
|
end
|
||||||
str = str..string.format(fmt, key, tostring(value), type(value) == "number" and 1 or 0)
|
local valueType = 0
|
||||||
|
if type(value) == "number" then
|
||||||
|
valueType = 1
|
||||||
|
elseif type(value) == "string" then
|
||||||
|
local sl = string.split(value, "#")
|
||||||
|
value = sl[1]
|
||||||
|
if sl[2] then
|
||||||
|
valueType = tonumber(sl[2]) or 0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
str = str..string.format(fmt, key, tostring(value), valueType)
|
||||||
index = index + 1
|
index = index + 1
|
||||||
end
|
end
|
||||||
return str
|
return str
|
||||||
|
|
@ -24,14 +34,16 @@ end
|
||||||
|
|
||||||
function this.Initialize()
|
function this.Initialize()
|
||||||
|
|
||||||
-- 监听赛季结束事件
|
if AppConst.isSDK then
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.Network.OnReceiveHeartBeat, function(network, time)
|
-- 监听赛季结束事件
|
||||||
if network.type == SocketType.LOGIN then
|
Game.GlobalEvent:AddEvent(GameEvent.Network.OnReceiveHeartBeat, function(network, time)
|
||||||
this.CalibrateTime(time)
|
if network.type == SocketType.LOGIN then
|
||||||
end
|
this.CalibrateTime(time)
|
||||||
end)
|
end
|
||||||
-- 尝试触发 安装事件(怀疑安装事件是在第一次触发track时触发的)
|
end)
|
||||||
this.Track("init")
|
-- 尝试触发 安装事件(怀疑安装事件是在第一次触发track时触发的)
|
||||||
|
App.TAMgr:Init()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 校对时间
|
-- 校对时间
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ function this.ShowGuide(id, ...)
|
||||||
DataCenterManager.CommitClickStatus(Language[10839], tostring(id))
|
DataCenterManager.CommitClickStatus(Language[10839], tostring(id))
|
||||||
ThinkingAnalyticsManager.Track("guild", {
|
ThinkingAnalyticsManager.Track("guild", {
|
||||||
step_id = id,
|
step_id = id,
|
||||||
guild_start_time = math.floor(GetTimeStamp()),
|
guild_start_time = math.floor(GetTimeStamp()).. "#3",
|
||||||
})
|
})
|
||||||
-- 引导结束回调
|
-- 引导结束回调
|
||||||
local function onGuideClose()
|
local function onGuideClose()
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,9 @@ function this.LoginRequest(openId, func)
|
||||||
ThinkingAnalyticsManager.SetSuperProperties({
|
ThinkingAnalyticsManager.SetSuperProperties({
|
||||||
server_id = LoginManager.ServerId,
|
server_id = LoginManager.ServerId,
|
||||||
account = AppConst.isSDK and tostring(AppConst.OpenId) or "",
|
account = AppConst.isSDK and tostring(AppConst.OpenId) or "",
|
||||||
["Bundle-id"] = AppConst.isSDK and AppConst.SdkPackageName or "",
|
Bundle_id = AppConst.isSDK and AppConst.SdkPackageName or "",
|
||||||
xx_id = AppConst.isSDK and AppConst.SdkChannel or ""
|
xx_id = AppConst.isSDK and AppConst.SdkChannel or "",
|
||||||
|
-- test_list = "1,2,3#2", -- 数组
|
||||||
})
|
})
|
||||||
TapDBManager.SetServer(LoginManager.ServerId)
|
TapDBManager.SetServer(LoginManager.ServerId)
|
||||||
end)
|
end)
|
||||||
|
|
@ -124,6 +125,7 @@ function this.PlayerInfoRequest(func)
|
||||||
role_id = PlayerManager.uid,
|
role_id = PlayerManager.uid,
|
||||||
role_name = PlayerManager.nickName,
|
role_name = PlayerManager.nickName,
|
||||||
vip_level = msg.player.vipLevel,
|
vip_level = msg.player.vipLevel,
|
||||||
|
-- test_date = math.floor(msg.player.serverTime) .. "#3", -- 日期
|
||||||
})
|
})
|
||||||
TapDBManager.SetUser(PlayerManager.uid)
|
TapDBManager.SetUser(PlayerManager.uid)
|
||||||
TapDBManager.SetLevel(PlayerManager.level)
|
TapDBManager.SetLevel(PlayerManager.level)
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ function this.RequestPay(context)
|
||||||
goods_id = context.Id,
|
goods_id = context.Id,
|
||||||
goods_name = context.Name,
|
goods_name = context.Name,
|
||||||
order_money_amount = context.Price,
|
order_money_amount = context.Price,
|
||||||
["Bundle-id"] = AppConst.SdkPackageName,
|
Bundle_id = AppConst.SdkPackageName,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -223,6 +223,7 @@ public static class CustomSettings
|
||||||
_GT(typeof(GameManager)),
|
_GT(typeof(GameManager)),
|
||||||
_GT(typeof(ThinkingAnalyticsManager)),
|
_GT(typeof(ThinkingAnalyticsManager)),
|
||||||
_GT(typeof(TapDBManager)),
|
_GT(typeof(TapDBManager)),
|
||||||
|
_GT(typeof(BuglyManager)),
|
||||||
_GT(typeof(LuaManager)),
|
_GT(typeof(LuaManager)),
|
||||||
//_GT(typeof(SoundManager)),
|
//_GT(typeof(SoundManager)),
|
||||||
_GT(typeof(NetworkManager)),
|
_GT(typeof(NetworkManager)),
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ public class AppWrap
|
||||||
L.RegVar("GameMgr", get_GameMgr, null);
|
L.RegVar("GameMgr", get_GameMgr, null);
|
||||||
L.RegVar("TAMgr", get_TAMgr, null);
|
L.RegVar("TAMgr", get_TAMgr, null);
|
||||||
L.RegVar("TBDMgr", get_TBDMgr, null);
|
L.RegVar("TBDMgr", get_TBDMgr, null);
|
||||||
|
L.RegVar("BuglyMgr", get_BuglyMgr, null);
|
||||||
L.RegVar("ImageDownloadMgr", get_ImageDownloadMgr, null);
|
L.RegVar("ImageDownloadMgr", get_ImageDownloadMgr, null);
|
||||||
L.RegVar("SpeakMgr", get_SpeakMgr, null);
|
L.RegVar("SpeakMgr", get_SpeakMgr, null);
|
||||||
L.RegVar("SDKMgr", get_SDKMgr, null);
|
L.RegVar("SDKMgr", get_SDKMgr, null);
|
||||||
|
|
@ -256,6 +257,20 @@ public class AppWrap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int get_BuglyMgr(IntPtr L)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ToLua.Push(L, App.BuglyMgr);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return LuaDLL.toluaL_exception(L, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int get_ImageDownloadMgr(IntPtr L)
|
static int get_ImageDownloadMgr(IntPtr L)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,48 @@
|
||||||
|
//this source code was auto-generated by tolua#, do not modify it
|
||||||
|
using System;
|
||||||
|
using LuaInterface;
|
||||||
|
|
||||||
|
public class GameCore_UnitySingleton_GameLogic_BuglyManagerWrap
|
||||||
|
{
|
||||||
|
public static void Register(LuaState L)
|
||||||
|
{
|
||||||
|
L.BeginClass(typeof(GameCore.UnitySingleton<GameLogic.BuglyManager>), typeof(UnityEngine.MonoBehaviour), "UnitySingleton_GameLogic_BuglyManager");
|
||||||
|
L.RegFunction("__eq", op_Equality);
|
||||||
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
||||||
|
L.RegVar("Instance", get_Instance, null);
|
||||||
|
L.EndClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int op_Equality(IntPtr L)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ToLua.CheckArgsCount(L, 2);
|
||||||
|
UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
|
||||||
|
UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
|
||||||
|
bool o = arg0 == arg1;
|
||||||
|
LuaDLL.lua_pushboolean(L, o);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return LuaDLL.toluaL_exception(L, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int get_Instance(IntPtr L)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ToLua.Push(L, GameCore.UnitySingleton<GameLogic.BuglyManager>.Instance);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return LuaDLL.toluaL_exception(L, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3bde787c082e0e04fa895687e54a406a
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -0,0 +1,98 @@
|
||||||
|
//this source code was auto-generated by tolua#, do not modify it
|
||||||
|
using System;
|
||||||
|
using LuaInterface;
|
||||||
|
|
||||||
|
public class GameLogic_BuglyManagerWrap
|
||||||
|
{
|
||||||
|
public static void Register(LuaState L)
|
||||||
|
{
|
||||||
|
L.BeginClass(typeof(GameLogic.BuglyManager), typeof(GameCore.UnitySingleton<GameLogic.BuglyManager>));
|
||||||
|
L.RegFunction("SetAppId", SetAppId);
|
||||||
|
L.RegFunction("Init", Init);
|
||||||
|
L.RegFunction("__eq", op_Equality);
|
||||||
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
||||||
|
L.RegVar("appId", get_appId, set_appId);
|
||||||
|
L.EndClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int SetAppId(IntPtr L)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ToLua.CheckArgsCount(L, 2);
|
||||||
|
GameLogic.BuglyManager obj = (GameLogic.BuglyManager)ToLua.CheckObject<GameLogic.BuglyManager>(L, 1);
|
||||||
|
string arg0 = ToLua.CheckString(L, 2);
|
||||||
|
obj.SetAppId(arg0);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return LuaDLL.toluaL_exception(L, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int Init(IntPtr L)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ToLua.CheckArgsCount(L, 1);
|
||||||
|
GameLogic.BuglyManager obj = (GameLogic.BuglyManager)ToLua.CheckObject<GameLogic.BuglyManager>(L, 1);
|
||||||
|
obj.Init();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return LuaDLL.toluaL_exception(L, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int op_Equality(IntPtr L)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ToLua.CheckArgsCount(L, 2);
|
||||||
|
UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
|
||||||
|
UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
|
||||||
|
bool o = arg0 == arg1;
|
||||||
|
LuaDLL.lua_pushboolean(L, o);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return LuaDLL.toluaL_exception(L, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int get_appId(IntPtr L)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
LuaDLL.lua_pushstring(L, GameLogic.BuglyManager.appId);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return LuaDLL.toluaL_exception(L, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int set_appId(IntPtr L)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
string arg0 = ToLua.CheckString(L, 2);
|
||||||
|
GameLogic.BuglyManager.appId = arg0;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return LuaDLL.toluaL_exception(L, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0eee73f5b0963d14b97e1e613a33f3af
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -8,6 +8,7 @@ public class GameLogic_TapDBManagerWrap
|
||||||
{
|
{
|
||||||
L.BeginClass(typeof(GameLogic.TapDBManager), typeof(GameCore.UnitySingleton<GameLogic.TapDBManager>));
|
L.BeginClass(typeof(GameLogic.TapDBManager), typeof(GameCore.UnitySingleton<GameLogic.TapDBManager>));
|
||||||
L.RegFunction("Init", Init);
|
L.RegFunction("Init", Init);
|
||||||
|
L.RegFunction("SetAppId", SetAppId);
|
||||||
L.RegFunction("OnStart", OnStart);
|
L.RegFunction("OnStart", OnStart);
|
||||||
L.RegFunction("SetUser", SetUser);
|
L.RegFunction("SetUser", SetUser);
|
||||||
L.RegFunction("SetServer", SetServer);
|
L.RegFunction("SetServer", SetServer);
|
||||||
|
|
@ -26,12 +27,43 @@ public class GameLogic_TapDBManagerWrap
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ToLua.CheckArgsCount(L, 4);
|
int count = LuaDLL.lua_gettop(L);
|
||||||
|
|
||||||
|
if (count == 1)
|
||||||
|
{
|
||||||
|
GameLogic.TapDBManager obj = (GameLogic.TapDBManager)ToLua.CheckObject<GameLogic.TapDBManager>(L, 1);
|
||||||
|
obj.Init();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
else if (count == 4)
|
||||||
|
{
|
||||||
|
GameLogic.TapDBManager obj = (GameLogic.TapDBManager)ToLua.CheckObject<GameLogic.TapDBManager>(L, 1);
|
||||||
|
string arg0 = ToLua.CheckString(L, 2);
|
||||||
|
string arg1 = ToLua.CheckString(L, 3);
|
||||||
|
string arg2 = ToLua.CheckString(L, 4);
|
||||||
|
obj.Init(arg0, arg1, arg2);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: GameLogic.TapDBManager.Init");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return LuaDLL.toluaL_exception(L, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int SetAppId(IntPtr L)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ToLua.CheckArgsCount(L, 2);
|
||||||
GameLogic.TapDBManager obj = (GameLogic.TapDBManager)ToLua.CheckObject<GameLogic.TapDBManager>(L, 1);
|
GameLogic.TapDBManager obj = (GameLogic.TapDBManager)ToLua.CheckObject<GameLogic.TapDBManager>(L, 1);
|
||||||
string arg0 = ToLua.CheckString(L, 2);
|
string arg0 = ToLua.CheckString(L, 2);
|
||||||
string arg1 = ToLua.CheckString(L, 3);
|
obj.SetAppId(arg0);
|
||||||
string arg2 = ToLua.CheckString(L, 4);
|
|
||||||
obj.Init(arg0, arg1, arg2);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ public class GameLogic_ThinkingAnalyticsManagerWrap
|
||||||
{
|
{
|
||||||
L.BeginClass(typeof(GameLogic.ThinkingAnalyticsManager), typeof(GameCore.UnitySingleton<GameLogic.ThinkingAnalyticsManager>));
|
L.BeginClass(typeof(GameLogic.ThinkingAnalyticsManager), typeof(GameCore.UnitySingleton<GameLogic.ThinkingAnalyticsManager>));
|
||||||
L.RegFunction("GetDynamicSuperProperties", GetDynamicSuperProperties);
|
L.RegFunction("GetDynamicSuperProperties", GetDynamicSuperProperties);
|
||||||
|
L.RegFunction("Init", Init);
|
||||||
L.RegFunction("CalibrateTime", CalibrateTime);
|
L.RegFunction("CalibrateTime", CalibrateTime);
|
||||||
L.RegFunction("SetDistinctId", SetDistinctId);
|
L.RegFunction("SetDistinctId", SetDistinctId);
|
||||||
L.RegFunction("GetDistinctId", GetDistinctId);
|
L.RegFunction("GetDistinctId", GetDistinctId);
|
||||||
|
|
@ -38,6 +39,22 @@ public class GameLogic_ThinkingAnalyticsManagerWrap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int Init(IntPtr L)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ToLua.CheckArgsCount(L, 1);
|
||||||
|
GameLogic.ThinkingAnalyticsManager obj = (GameLogic.ThinkingAnalyticsManager)ToLua.CheckObject<GameLogic.ThinkingAnalyticsManager>(L, 1);
|
||||||
|
obj.Init();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
return LuaDLL.toluaL_exception(L, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int CalibrateTime(IntPtr L)
|
static int CalibrateTime(IntPtr L)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ public static class LuaBinder
|
||||||
GameCore_UnitySingleton_GameLogic_GameManagerWrap.Register(L);
|
GameCore_UnitySingleton_GameLogic_GameManagerWrap.Register(L);
|
||||||
GameCore_UnitySingleton_GameLogic_ThinkingAnalyticsManagerWrap.Register(L);
|
GameCore_UnitySingleton_GameLogic_ThinkingAnalyticsManagerWrap.Register(L);
|
||||||
GameCore_UnitySingleton_GameLogic_TapDBManagerWrap.Register(L);
|
GameCore_UnitySingleton_GameLogic_TapDBManagerWrap.Register(L);
|
||||||
|
GameCore_UnitySingleton_GameLogic_BuglyManagerWrap.Register(L);
|
||||||
GameCore_UnitySingleton_GameLogic_LuaManagerWrap.Register(L);
|
GameCore_UnitySingleton_GameLogic_LuaManagerWrap.Register(L);
|
||||||
GameCore_UnitySingleton_GameLogic_NetworkManagerWrap.Register(L);
|
GameCore_UnitySingleton_GameLogic_NetworkManagerWrap.Register(L);
|
||||||
GameCore_Singleton_GameLogic_ResourcesManagerWrap.Register(L);
|
GameCore_Singleton_GameLogic_ResourcesManagerWrap.Register(L);
|
||||||
|
|
@ -246,6 +247,7 @@ public static class LuaBinder
|
||||||
GameLogic_GameManagerWrap.Register(L);
|
GameLogic_GameManagerWrap.Register(L);
|
||||||
GameLogic_ThinkingAnalyticsManagerWrap.Register(L);
|
GameLogic_ThinkingAnalyticsManagerWrap.Register(L);
|
||||||
GameLogic_TapDBManagerWrap.Register(L);
|
GameLogic_TapDBManagerWrap.Register(L);
|
||||||
|
GameLogic_BuglyManagerWrap.Register(L);
|
||||||
GameLogic_LuaManagerWrap.Register(L);
|
GameLogic_LuaManagerWrap.Register(L);
|
||||||
GameLogic_NetworkManagerWrap.Register(L);
|
GameLogic_NetworkManagerWrap.Register(L);
|
||||||
GameLogic_ResourcesManagerWrap.Register(L);
|
GameLogic_ResourcesManagerWrap.Register(L);
|
||||||
|
|
@ -277,6 +279,7 @@ public static class LuaBinder
|
||||||
SDK_SDKSubmitExtraDataArgsWrap.Register(L);
|
SDK_SDKSubmitExtraDataArgsWrap.Register(L);
|
||||||
L.BeginModule("SDKManager");
|
L.BeginModule("SDKManager");
|
||||||
L.RegFunction("InitLaunchAction", SDK_SDKManager_InitLaunchAction);
|
L.RegFunction("InitLaunchAction", SDK_SDKManager_InitLaunchAction);
|
||||||
|
L.RegFunction("RegisterAction", SDK_SDKManager_RegisterAction);
|
||||||
L.RegFunction("LoginAction", SDK_SDKManager_LoginAction);
|
L.RegFunction("LoginAction", SDK_SDKManager_LoginAction);
|
||||||
L.RegFunction("PayAction", SDK_SDKManager_PayAction);
|
L.RegFunction("PayAction", SDK_SDKManager_PayAction);
|
||||||
L.RegFunction("SwitchAccountAction", SDK_SDKManager_SwitchAccountAction);
|
L.RegFunction("SwitchAccountAction", SDK_SDKManager_SwitchAccountAction);
|
||||||
|
|
@ -1940,6 +1943,33 @@ public static class LuaBinder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int SDK_SDKManager_RegisterAction(IntPtr L)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
int count = LuaDLL.lua_gettop(L);
|
||||||
|
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
||||||
|
|
||||||
|
if (count == 1)
|
||||||
|
{
|
||||||
|
Delegate arg1 = DelegateTraits<SDK.SDKManager.RegisterAction>.Create(func);
|
||||||
|
ToLua.Push(L, arg1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
||||||
|
Delegate arg1 = DelegateTraits<SDK.SDKManager.RegisterAction>.Create(func, self);
|
||||||
|
ToLua.Push(L, arg1);
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
return LuaDLL.toluaL_exception(L, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int SDK_SDKManager_LoginAction(IntPtr L)
|
static int SDK_SDKManager_LoginAction(IntPtr L)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue