Ignore:
Timestamp:
Nov 9, 2021, 6:28:33 PM (3 years ago)
Author:
alloc
Message:

Preparations for A20 release
Changes usage of "SteamID" to "UserID" in console commands
Also changes a bunch of the WebAPI stuff to show / use UserIDs

File:
1 edited

Legend:

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

    r349 r369  
    88                public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
    99                        int _permissionLevel) {
    10 
    11                         bool showIconColor, showIconName;
    12                         GetPlayerInventory.GetInventoryArguments (_req, out showIconColor, out showIconName);
     10                        GetPlayerInventory.GetInventoryArguments (_req, out bool showIconColor, out bool showIconName);
    1311
    1412                        JSONArray AllInventoriesResult = new JSONArray ();
    1513
    16                         foreach (KeyValuePair<string, Player> kvp in PersistentContainer.Instance.Players.Dict) {
     14                        foreach (KeyValuePair<PlatformUserIdentifierAbs, Player> kvp in PersistentContainer.Instance.Players.Dict) {
    1715                                Player p = kvp.Value;
    1816
     
    2220
    2321                                if (p.IsOnline) {
    24                                         AllInventoriesResult.Add (GetPlayerInventory.DoPlayer (kvp.Key, p, showIconColor, showIconName));
     22                                        AllInventoriesResult.Add (GetPlayerInventory.DoPlayer (kvp.Key.CombinedString, p, showIconColor, showIconName));
    2523                                }
    2624                        }
Note: See TracChangeset for help on using the changeset viewer.