static int _g_get_Entity(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                Unity.Entities.GameObjectEntity gen_to_be_invoked = (Unity.Entities.GameObjectEntity)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.Entity);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Unity.Entities.GameObjectEntity gen_ret = new Unity.Entities.GameObjectEntity();
                    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 Unity.Entities.GameObjectEntity constructor!"));
        }
        static int _m_GetMainRole(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityMMO.RoleMgr gen_to_be_invoked = (UnityMMO.RoleMgr)translator.FastGetCSObj(L, 1);



                {
                    Unity.Entities.GameObjectEntity gen_ret = gen_to_be_invoked.GetMainRole(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Beispiel #4
0
        static int _m_ApplyMainRole(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityMMO.SceneMgr gen_to_be_invoked = (UnityMMO.SceneMgr)translator.FastGetCSObj(L, 1);



                {
                    Unity.Entities.GameObjectEntity _mainRole = (Unity.Entities.GameObjectEntity)translator.GetObject(L, 2, typeof(Unity.Entities.GameObjectEntity));

                    gen_to_be_invoked.ApplyMainRole(_mainRole);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }