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/7dtd-server-fixes/src/LandClaimList.cs

    r351 r369  
    44
    55namespace AllocsFixes {
    6         public class LandClaimList {
     6        public static class LandClaimList {
    77                public delegate bool OwnerFilter (Player _owner);
    88
     
    4141
    4242                        foreach (KeyValuePair<PersistentPlayerData, List<Vector3i>> kvp in owners) {
    43                                 Player p = PersistentContainer.Instance.Players [kvp.Key.PlayerId, false];
     43                                Player p = PersistentContainer.Instance.Players [kvp.Key.UserIdentifier, false];
    4444                                if (p == null) {
    45                                         p = new Player (kvp.Key.PlayerId);
     45                                        p = new Player (kvp.Key.UserIdentifier);
    4646                                }
    4747
     
    6767                }
    6868
    69                 public static OwnerFilter SteamIdFilter (string _steamId) {
    70                         return _p => _p.SteamID.Equals (_steamId);
     69                public static OwnerFilter UserIdFilter (PlatformUserIdentifierAbs _userId) {
     70                        return _p => _p.PlatformId.Equals (_userId);
    7171                }
    7272
Note: See TracChangeset for help on using the changeset viewer.