Advertisement
rotol

battleinf.api.d.ts

Sep 25th, 2015
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /// <reference path="battleinf.d.ts" />
  2.  
  3. declare module API {
  4.     module inventory {
  5.         function sell(item: Item, callback?: Function);
  6.         function lock(item: Item);
  7.         function unlock(item: Item);
  8.         function equip(item: Item, callback?: Function);
  9.         function unequip(item: Item, callback?: Function);
  10.         function craft(primaryItem: Item, consumedItem: Item, callback?: Function);
  11.     }
  12.  
  13.     module market {
  14.         function addToMarket(item: Item, callback?: Function);
  15.         function removeFromMarket(item: Item, callback?: Function)
  16.     }
  17.  
  18.     module notifications {
  19.         function create(text: string, timeout?: number);
  20.         function sendReminder(message: string);
  21.     }
  22. }
  23.  
  24. declare var items: Array<Item>;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement