示例#1
0
        static int _m_SyncPos(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Game.MoveComp gen_to_be_invoked = (Game.MoveComp)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool _force = LuaAPI.lua_toboolean(L, 2);

                    gen_to_be_invoked.SyncPos(_force);



                    return(0);
                }
                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.SyncPos(  );



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

            return(LuaAPI.luaL_error(L, "invalid arguments to Game.MoveComp.SyncPos!"));
        }