Item shop module. Item shop is described in detail in Shop article.
inline buy (itemID:Int):String
Sends request to cache server to buy item from shop. If the item has a limited amount, this method will check if it is still available and modify its amount.
Parameters:
itemID
Item ID.
Returns:
Operation error code.
notAvailable
- item is not in shop or no longer available.
ok
- operation successful.
Updates local shop contents copy from cache server. This can be called each time the client sends the request to get shop contents.