public long Insert(IDDS_Item dds, E_Item item, int charId, ItemPlace ip, short pos)
                {
                    var realId = dds.InsertItem(item.GetItemDdo(charId, ip, pos));

                    item.ResetRealId(realId);
                    dds.InsertEquipmentInfo(((E_EquipmentItem)item).GetEquipmentInfoDdo(charId));
                    return(realId);
                }
 public void SetItem(E_Item item, short pos)
 {
     if (m_itemList.Count <= pos)
     {
         return;
     }
     m_itemList[pos] = item;
 }
 /// <summary>
 /// 存储一个Item
 /// 背包内的因为插入而被修改的物品 (pos, obj) 列表
 /// </summary>
 /// <return>
 /// 若item占用了一个槽位返回 pos
 /// 若完全堆叠返回 -1
 /// 未能完全存入返回 -2
 /// </return>
 public short AutoPileAndStoreItem(E_Item item, out List <(short, E_Item)> posAndChangedItemList, out short piledNum, out short realStoredNum, out E_EmptyItem resOriSlot)
 public long Insert(IDDS_Item dds, E_Item item, int charId, ItemPlace ip, short pos)
 {
     return(dds.InsertItem(item.GetItemDdo(charId, ip, pos)));
 }
 public void ResetInfo(DEM_Item dem, ItemInfoDdoCollections collct, long realId, E_Item resItem)
 {
     resItem.ResetRealId(realId);
 }
 public void Delete(IDDS_Item dds, E_Item item)
 {
     dds.DeleteItemByRealId(item.m_realId);
 }
 public void Save(IDDS_Item dds, E_Item item, int charId, ItemPlace ip, short pos)
 {
     dds.UpdateItem(item.GetItemDdo(charId, ip, pos));
 }
                public void ResetInfo(DEM_Item dem, ItemInfoDdoCollections collct, long realId, E_Item resItem)
                {
                    resItem.ResetRealId(realId);
                    DDO_EquipmentInfo eqDdo;

                    if (!collct.TryGetEquipment(realId, out eqDdo))
                    {
                        (resItem as E_EquipmentItem).ResetEquipmentData(0, new (ActorUnitConcreteAttributeType, int) [0], new List <short> (), new List <DE_GemData> ());
 public void Delete(IDDS_Item dds, E_Item item)
 {
     dds.DeleteItemByRealId(item.m_realId);
     dds.DeleteEquipmentInfoByRealId(item.m_realId);
 }
 public void Save(IDDS_Item dds, E_Item item, int charId, ItemPlace ip, short pos)
 {
     dds.UpdateItem(item.GetItemDdo(charId, ip, pos));
     dds.UpdateEquipmentInfo((item as E_EquipmentItem).GetEquipmentInfoDdo(charId));
 }
示例#11
0
 public void Initialize(DEM_Item dem, E_Item resItem, DE_Item de, short num)
 {
     ((E_EnchantmentItem)resItem).Reset(de);
 }
示例#12
0
                public void Initialize(DEM_Item dem, E_Item resItem, DE_Item de, short num)
                {
                    var gemDe = dem.GetGemById(de.m_id);

                    ((E_GemItem)resItem).Reset(de, gemDe);
                }
示例#13
0
                public void Initialize(DEM_Item dem, E_Item resItem, DE_Item de, short num)
                {
                    var eqDe = dem.GetEquipmentById(de.m_id);

                    ((E_EquipmentItem)resItem).Reset(de, eqDe);
                }
示例#14
0
                public void Initialize(DEM_Item dem, E_Item resItem, DE_Item de, short num)
                {
                    var conDe = dem.GetConsumableById(de.m_id);

                    ((E_ConsumableItem)resItem).Reset(de, conDe, num);
                }
示例#15
0
 public void Initialize(DEM_Item dem, E_Item resItem, DE_Item de, short num)
 {
     ((E_MaterialItem)resItem).Reset(de, num);
 }
示例#16
0
 public void RecycleItem(E_Item item)
 {
     m_poolDict[item.m_Type].RecycleInstance(item);
 }