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


                UnityMMO.NPCMgr gen_to_be_invoked = (UnityMMO.NPCMgr)translator.FastGetCSObj(L, 1);



                {
                    GameWorld _world = (GameWorld)translator.GetObject(L, 2, typeof(GameWorld));

                    gen_to_be_invoked.Init(_world);



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


                UnityMMO.NPCMgr gen_to_be_invoked = (UnityMMO.NPCMgr)translator.FastGetCSObj(L, 1);



                {
                    Unity.Entities.Entity _entity; translator.Get(L, 2, out _entity);

                    string gen_ret = gen_to_be_invoked.GetName(_entity);
                    LuaAPI.lua_pushstring(L, gen_ret);



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