Exemplo n.º 1
0
        static int _s_set_ViewGO(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.ObjectPool gen_to_be_invoked = (DCET.Model.ObjectPool)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.ViewGO = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 2
0
        static int _s_set_Name(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.ObjectPool gen_to_be_invoked = (DCET.Model.ObjectPool)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Name = LuaAPI.lua_tostring(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 3
0
        static int _g_get_ViewGO(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.ObjectPool gen_to_be_invoked = (DCET.Model.ObjectPool)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.ViewGO);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Exemplo n.º 4
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    DCET.Model.ObjectPool gen_ret = new DCET.Model.ObjectPool();
                    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 DCET.Model.ObjectPool constructor!"));
        }
Exemplo n.º 5
0
        static int _m_LogErrorCheckResult(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.ObjectPool gen_to_be_invoked = (DCET.Model.ObjectPool)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.LogErrorCheckResult(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemplo n.º 6
0
        static int _m_Check(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.ObjectPool gen_to_be_invoked = (DCET.Model.ObjectPool)translator.FastGetCSObj(L, 1);



                {
                    DCET.Model.MultiMapSet <string, string> gen_ret = gen_to_be_invoked.Check(  );
                    translator.Push(L, gen_ret);



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


                DCET.Model.ObjectPool gen_to_be_invoked = (DCET.Model.ObjectPool)translator.FastGetCSObj(L, 1);



                {
                    string gen_ret = gen_to_be_invoked.ToString(  );
                    LuaAPI.lua_pushstring(L, gen_ret);



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


                DCET.Model.ObjectPool gen_to_be_invoked = (DCET.Model.ObjectPool)translator.FastGetCSObj(L, 1);



                {
                    DCET.Model.Entity _obj = (DCET.Model.Entity)translator.GetObject(L, 2, typeof(DCET.Model.Entity));

                    gen_to_be_invoked.Recycle(_obj);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemplo n.º 9
0
        static int _m_Fetch(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.ObjectPool gen_to_be_invoked = (DCET.Model.ObjectPool)translator.FastGetCSObj(L, 1);



                {
                    System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));

                    DCET.Model.Entity gen_ret = gen_to_be_invoked.Fetch(_type);
                    translator.Push(L, gen_ret);



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