public bool Init() { int ret = 0; string AppID = EntryPoint.Instance.GameCustomConfigParams.GCloud_AppID; string AppKey = EntryPoint.Instance.GameCustomConfigParams.GCloud_AppKey; if (m_voiceengine == null) { m_voiceengine = gcloud_voice.GCloudVoice.GetEngine(); System.TimeSpan ts = System.DateTime.UtcNow - new System.DateTime(1970, 1, 1, 0, 0, 0, 0); string strTime = System.Convert.ToInt64(ts.TotalSeconds).ToString(); ret = m_voiceengine.SetAppInfo(AppID, AppKey, strTime); if (ret != 0) { m_voiceengine = null; HobaDebuger.LogError(HobaText.Format("IGCloudVoice SetAppInfo Failed! ret: {0}", ret)); } else { ret = m_voiceengine.Init(); if (ret != 0) { m_voiceengine = null; HobaDebuger.LogError(HobaText.Format("IGCloudVoice Init Failed! ret: {0}", ret)); } } } return(ret == 0); }
static int QPYX_GetEngine_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 0); gcloud_voice.IGCloudVoice QPYX_o_YXQP = gcloud_voice.GCloudVoice.GetEngine(); ToLua.PushObject(L_YXQP, QPYX_o_YXQP); return(1); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int QPYX_set_mVoiceengine_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); GVoiceManager QPYX_obj_YXQP = (GVoiceManager)QPYX_o_YXQP; gcloud_voice.IGCloudVoice QPYX_arg0_YXQP = (gcloud_voice.IGCloudVoice)ToLua.CheckObject <gcloud_voice.IGCloudVoice>(L_YXQP, 2); QPYX_obj_YXQP.mVoiceengine = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index mVoiceengine on a nil value")); } }
static int QPYX_get_mVoiceengine_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); GVoiceManager QPYX_obj_YXQP = (GVoiceManager)QPYX_o_YXQP; gcloud_voice.IGCloudVoice QPYX_ret_YXQP = QPYX_obj_YXQP.mVoiceengine; ToLua.PushObject(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index mVoiceengine on a nil value")); } }