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

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

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

                DCET.Model.TurnComponent gen_to_be_invoked = (DCET.Model.TurnComponent)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.From);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Exemplo n.º 4
0
        static int _s_set_From(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.TurnComponent gen_to_be_invoked = (DCET.Model.TurnComponent)translator.FastGetCSObj(L, 1);
                UnityEngine.Quaternion   gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.From = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Exemplo n.º 5
0
        static int _m_TurnImmediately(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    float _angle = (float)LuaAPI.lua_tonumber(L, 2);

                    gen_to_be_invoked.TurnImmediately(_angle);



                    return(0);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Quaternion>(L, 2))
                {
                    UnityEngine.Quaternion _quaternion; translator.Get(L, 2, out _quaternion);

                    gen_to_be_invoked.TurnImmediately(_quaternion);



                    return(0);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3>(L, 2))
                {
                    UnityEngine.Vector3 _target; translator.Get(L, 2, out _target);

                    gen_to_be_invoked.TurnImmediately(_target);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to DCET.Model.TurnComponent.TurnImmediately!"));
        }
Exemplo n.º 6
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    DCET.Model.TurnComponent gen_ret = new DCET.Model.TurnComponent();
                    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.TurnComponent constructor!"));
        }
Exemplo n.º 7
0
        static int _m_Update(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.Update(  );



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