示例#1
0
        //public bool LoadExisting(Item_Info info, ushort slotId, ushort count, Item itm)
        //{
        //    Info = info;

        //    if (info == null)
        //        return false;

        //    if (count <= 0)
        //        count = 1;

        //    _SlotId = slotId;
        //    _ModelId = info.ModelId;
        //    _Count = count;

        //    Player player = Owner as Player;

        //    if (player != null)
        //    {
        //        CharMgr.CreateItem(itm.CharSaveInfo);

        //        if (info.SpellId != 0)
        //            player.AbtInterface.AssignItemCooldown(this);
        //    }

        //    return true;
        //}

        public void Delete()
        {
            if (CharSaveInfo != null)
            {
                CharMgr.DeleteItem(CharSaveInfo);
            }
        }