public MoveMultipleItemsResponse ConvertToMoveMultipleItemsResponse(string dataString) { JToken token = JToken.Parse(dataString); MoveMultipleItemsResponse infos = JsonConvert.DeserializeObject <MoveMultipleItemsResponse>(token.ToString()); return(infos); }
private static MoveMultipleItemsResponse JsonToMoveMultipleItemsResponse(string data) { JToken token = JToken.Parse(data); MoveMultipleItemsResponse moveItemResponses = JsonConvert.DeserializeObject <MoveMultipleItemsResponse>(token.ToString()); return(moveItemResponses); }
void ItemMoved(MoveMultipleItemsResponse moves, ItemData item) { foreach (MovedItemsInfo moveInfo in moves.movedItems) { DropMovedItem(item, moveInfo); } gameItemDrop.DropItemIntoWorld(item, DropTransform.position, DropObjModel); }
void MovedItems(MoveMultipleItemsResponse moveItemResponses) { var itemsToDrop = CreateDropItemArray(); foreach (MovedItemsInfo moveInfo in moveItemResponses.movedItems) { DropMovedItems(itemsToDrop, moveInfo); } }
void MovedItems(MoveMultipleItemsResponse moveItemResponses) { var itemsToDrop = CreateDropItemArray(); foreach (MovedItemsInfo moveInfo in moveItemResponses.movedItems) { DropMovedItems(itemsToDrop, moveInfo); } }
void ItemMoved(MoveMultipleItemsResponse moves, ItemData item) { foreach (MovedItemsInfo moveInfo in moves.movedItems) { DropMovedItem(item, moveInfo); } gameItemDrop.DropItemIntoWorld(item, DropTransform.position, CloudGoods.DefaultItemDrop, false); }
void ItemMoved(MoveMultipleItemsResponse moves, ItemData item) { foreach (MovedItemsInfo moveInfo in moves.movedItems) { DropMovedItem(item, moveInfo); } gameItemDrop.DropItemIntoWorld(item, DropTransform.position, DropObjModel); }
void OnReceivedMoveMultipleItemsResponse(MoveMultipleItemsResponse moveItems) { Debug.Log("Moved Item Stack ID: " + moveItems.movedItems[0].OriginalStackID + " Moved Item New Stack ID: " + moveItems.movedItems[0].NewStackID); }
void OnReceivedMoveMultipleItemsResponse(MoveMultipleItemsResponse moveItems) { Debug.Log("Moved Item Stack ID: " + moveItems.movedItems[0].OriginalStackID + " Moved Item New Stack ID: " + moveItems.movedItems[0].NewStackID); }
public MoveMultipleItemsResponse ConvertToMoveMultipleItemsResponse(string dataString) { MoveMultipleItemsResponse infos = LitJson.JsonMapper.ToObject <MoveMultipleItemsResponse>(dataString); return(infos); }