Changeset 321


Ignore:
Timestamp:
Jun 18, 2018, 6:41:08 PM (6 years ago)
Author:
alloc
Message:

Fixed #114: Added GetPlayerInventories API

Location:
binary-improvements/MapRendering/Web/API
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/API/GetPlayerInventory.cs

    r253 r321  
    5656                }
    5757
    58                 private void DoInventory (JSONArray _jsonRes, List<InvItem> _inv) {
     58                internal static void DoInventory (JSONArray _jsonRes, List<InvItem> _inv) {
    5959                        for (int i = 0; i < _inv.Count; i++) {
    6060                                _jsonRes.Add (GetJsonForItem (_inv [i]));
     
    6262                }
    6363
    64                 private void AddEquipment (JSONObject _eq, string _slotname, InvItem[] _items, EquipmentSlots _slot) {
     64                internal static void AddEquipment (JSONObject _eq, string _slotname, InvItem[] _items, EquipmentSlots _slot) {
    6565                        int[] slotindices = XUiM_PlayerEquipment.GetSlotIndicesByEquipmentSlot (_slot);
    6666
     
    7676                }
    7777
    78                 private JSONNode GetJsonForItem (InvItem _item) {
     78                internal static JSONNode GetJsonForItem (InvItem _item) {
    7979                        if (_item != null) {
    8080                                JSONObject jsonItem = new JSONObject ();
Note: See TracChangeset for help on using the changeset viewer.