Beispiel #1
0
        static int _m_Start(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                BattleServer.BS __cl_gen_to_be_invoked = (BattleServer.BS)translator.FastGetCSObj(L, 1);



                {
                    Shared.ErrorCode __cl_gen_ret = __cl_gen_to_be_invoked.Start(  );
                    translator.Push(L, __cl_gen_ret);



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


                BattleServer.BS __cl_gen_to_be_invoked = (BattleServer.BS)translator.FastGetCSObj(L, 1);



                {
                    BattleServer.Options opts = (BattleServer.Options)translator.GetObject(L, 2, typeof(BattleServer.Options));

                    Shared.ErrorCode __cl_gen_ret = __cl_gen_to_be_invoked.Initialize(opts);
                    translator.Push(L, __cl_gen_ret);



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