コード例 #1
0
 public static void RemoveItem(this MapInstance instance, Item item)
 {
     try
     {
         instance.Items.Remove(item);
         Global.Global.VisibleService.Send(item, new SpDropRemove(item));
         item.Release();
     }
     catch
     {
         //Already removed
     }
 }
コード例 #2
0
 public static void RemoveItem(this MapInstance instance, Item item)
 {
     try
     {
         instance.Items.Remove(item);
         Global.VisibleService.Send(item, new SpRemoveItem(item));
         item.Release();
     }
     // ReSharper disable EmptyGeneralCatchClause
     catch
     // ReSharper restore EmptyGeneralCatchClause
     {
         //Already removed
     }
 }