Exemple #1
0
 public ItemsBarterEventArgs(ItemArray sale_items, UIntArray sale_items_count,
                             ItemArray buy_items, UIntArray buy_items_count,
                             Critter player, Critter npc)
 {
     this.SaleItems      = sale_items;
     this.SaleItemsCount = sale_items_count;
     this.BuyItems       = buy_items;
     this.BuyItemsCount  = buy_items_count;
     this.Player         = player;
     this.Npc            = Npc;
 }
Exemple #2
0
 public void MoveItems(ItemArray items, Item to_cont, uint stack_id)
 {
     Global_MoveItemsCont(items.ThisPtr, to_cont.ThisPtr, stack_id);
 }
Exemple #3
0
 public void MoveItems(ItemArray items, Map to_map, ushort to_hx, ushort to_hy)
 {
     Global_MoveItemsMap(items.ThisPtr, to_map.ThisPtr, to_hx, to_hy);
 }
Exemple #4
0
 public uint GetAllItems(ushort pid, ItemArray items)
 {
     return(Global_GetAllItems(pid, (IntPtr)items));
 }
Exemple #5
0
 public void MoveItems(ItemArray items, Critter to_cr)
 {
     Global_MoveItemsCr(items.ThisPtr, to_cr.ThisPtr);
 }
Exemple #6
0
 public void DeleteItems(ItemArray items)
 {
     Global_DeleteItems(items.ThisPtr);
 }
Exemple #7
0
 public virtual uint GetItems(uint special_id, ItemArray items)
 {
     return(Container_GetItems(thisptr, special_id, (IntPtr)items));
 }
 public virtual uint GetItemsByType(int type, ItemArray items)
 {
     return(Map_GetItemsByType(thisptr, type, items != null ? items.ThisPtr : IntPtr.Zero));
 }
 public virtual uint GetItems(ushort pid, ItemArray items)
 {
     return(Map_GetItemsByPid(thisptr, pid, items != null ? items.ThisPtr : IntPtr.Zero));
 }
 public virtual uint GetItems(ushort hx, ushort hy, uint radius, ushort pid, ItemArray items)
 {
     return(Map_GetItemsHexEx(thisptr, hx, hy, radius, pid, items != null ? items.ThisPtr : IntPtr.Zero));
 }