Ignore:
Timestamp:
Jan 19, 2019, 6:12:21 PM (6 years ago)
Author:
alloc
Message:

Fixed game version compatibility of GamePrefs
Code style cleanup (mostly argument names)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/LandClaimList.cs

    r326 r351  
    55namespace AllocsFixes {
    66        public class LandClaimList {
    7                 public delegate bool OwnerFilter (Player owner);
     7                public delegate bool OwnerFilter (Player _owner);
    88
    9                 public delegate bool PositionFilter (Vector3i position);
     9                public delegate bool PositionFilter (Vector3i _position);
    1010
    1111                public static Dictionary<Player, List<Vector3i>> GetLandClaims (OwnerFilter[] _ownerFilters,
     
    6868
    6969                public static OwnerFilter SteamIdFilter (string _steamId) {
    70                         return p => p.SteamID.Equals (_steamId);
     70                        return _p => _p.SteamID.Equals (_steamId);
    7171                }
    7272
    7373                public static PositionFilter CloseToFilter2dRect (Vector3i _position, int _maxDistance) {
    74                         return v => Math.Abs (v.x - _position.x) <= _maxDistance && Math.Abs (v.z - _position.z) <= _maxDistance;
     74                        return _v => Math.Abs (_v.x - _position.x) <= _maxDistance && Math.Abs (_v.z - _position.z) <= _maxDistance;
    7575                }
    7676
    7777                public static OwnerFilter OrOwnerFilter (OwnerFilter _f1, OwnerFilter _f2) {
    78                         return p => _f1 (p) || _f2 (p);
     78                        return _p => _f1 (_p) || _f2 (_p);
    7979                }
    8080        }
Note: See TracChangeset for help on using the changeset viewer.