Beispiel #1
0
 public void UpdateSoul(Net.PkgSoul soul)
 {
     if (soul != null)
     {
         NetSoul = soul;
         Lv      = soul.lv;
         HoleId  = soul.hole_id;
         UpdateSoul();
     }
 }
Beispiel #2
0
        static int _m_UpdateSoul(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.GoodsSoul __cl_gen_to_be_invoked = (xc.GoodsSoul)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 1)
                {
                    __cl_gen_to_be_invoked.UpdateSoul(  );



                    return(0);
                }
                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    uint lv = LuaAPI.xlua_touint(L, 2);

                    __cl_gen_to_be_invoked.UpdateSoul(lv);



                    return(0);
                }
                if (__gen_param_count == 2 && translator.Assignable <Net.PkgSoul>(L, 2))
                {
                    Net.PkgSoul soul = (Net.PkgSoul)translator.GetObject(L, 2, typeof(Net.PkgSoul));

                    __cl_gen_to_be_invoked.UpdateSoul(soul);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.GoodsSoul.UpdateSoul!"));
        }