static int _g_get_CSAndLuaPBTextLuaScript(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); CSAndLuaPBTest gen_to_be_invoked = (CSAndLuaPBTest)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.CSAndLuaPBTextLuaScript); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_CSAndLuaPBTextLuaScript(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); CSAndLuaPBTest gen_to_be_invoked = (CSAndLuaPBTest)translator.FastGetCSObj(L, 1); gen_to_be_invoked.CSAndLuaPBTextLuaScript = (UnityEngine.TextAsset)translator.GetObject(L, 2, typeof(UnityEngine.TextAsset)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _m_ForLuaCallCS_xlua_st_(RealStatePtr L) { try { { byte[] _luaEncodeBytes = LuaAPI.lua_tobytes(L, 1); CSAndLuaPBTest.ForLuaCallCS(_luaEncodeBytes); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new CSAndLuaPBTest(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to CSAndLuaPBTest constructor!")); }
// Use this for initialization void Start() { Instance = this; curLeftTime = LOG_INTERVAL; }
void OnDestory() { Instance = null; StreamBufferPool.RecycleStream(msSend); StreamBufferPool.RecycleStream(msRecive); }