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


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



                {
                    DCET.Model.Session _session = (DCET.Model.Session)translator.GetObject(L, 2, typeof(DCET.Model.Session));
                    object             _message = translator.GetObject(L, 3, typeof(object));

                    DCET.Model.ETVoid gen_ret = gen_to_be_invoked.Handle(_session, _message);
                    translator.Push(L, gen_ret);



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


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



                {
                    DCET.Model.ETVoid gen_ret = gen_to_be_invoked.StartRecv(  );
                    translator.Push(L, gen_ret);



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


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <System.Threading.CancellationToken>(L, 2))
                {
                    System.Threading.CancellationToken _cancellationToken; translator.Get(L, 2, out _cancellationToken);

                    DCET.Model.ETTask gen_ret = gen_to_be_invoked.StartMove(_cancellationToken);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <DCET.Model.M2C_PathfindingResult>(L, 2))
                {
                    DCET.Model.M2C_PathfindingResult _message = (DCET.Model.M2C_PathfindingResult)translator.GetObject(L, 2, typeof(DCET.Model.M2C_PathfindingResult));

                    DCET.Model.ETVoid gen_ret = gen_to_be_invoked.StartMove(_message);
                    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.UnitPathComponent.StartMove!"));
        }
Example #4
0
        static int _m_StartAccept(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    System.Collections.Generic.IEnumerable <string> _prefixs = (System.Collections.Generic.IEnumerable <string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable <string>));

                    DCET.Model.ETVoid gen_ret = gen_to_be_invoked.StartAccept(_prefixs);
                    translator.Push(L, gen_ret);



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


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



                {
                    long _afterTimeCancel = LuaAPI.lua_toint64(L, 2);

                    DCET.Model.ETVoid gen_ret = gen_to_be_invoked.CancelAfter(_afterTimeCancel);
                    translator.Push(L, gen_ret);



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