Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
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));
            }
        }
Beispiel #4
0
        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!"));
        }
Beispiel #5
0
 // Use this for initialization
 void Start()
 {
     Instance    = this;
     curLeftTime = LOG_INTERVAL;
 }
Beispiel #6
0
 void OnDestory()
 {
     Instance = null;
     StreamBufferPool.RecycleStream(msSend);
     StreamBufferPool.RecycleStream(msRecive);
 }