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


                Logic.Battle __cl_gen_to_be_invoked = (Logic.Battle)translator.FastGetCSObj(L, 1);



                {
                    string         id = LuaAPI.lua_tostring(L, 2);
                    Core.Math.Vec3 position; translator.Get(L, 3, out position);
                    Core.Math.Vec3 direction; translator.Get(L, 4, out direction);

                    Logic.Controller.Missile __cl_gen_ret = __cl_gen_to_be_invoked.CreateMissile(id, position, direction);
                    translator.Push(L, __cl_gen_ret);



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


                Logic.Battle __cl_gen_to_be_invoked = (Logic.Battle)translator.FastGetCSObj(L, 1);



                {
                    string rid = LuaAPI.lua_tostring(L, 2);

                    Logic.Controller.Missile __cl_gen_ret = __cl_gen_to_be_invoked.GetMissile(rid);
                    translator.Push(L, __cl_gen_ret);



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