public List <Region> GetRegionsForPlayer(WCPlayer wcPlayer)
        {
            List <Region> regions = new List <Region>(_regions.Capacity);

            for (int i = 0; i < _regions.Count; i++)
            {
                if (_regions[i].CanContribute(wcPlayer.UniqueID))
                {
                    regions.Add(_regions[i]);
                }
            }

            return(regions);
        }
 public List <Region> GetRegionsForPlayer(ModPlayer modPlayer) => GetRegionsForPlayer(WCPlayer.Get(modPlayer));
 public List <Region> GetRegionsForPlayer(Player player) => GetRegionsForPlayer(WCPlayer.Get(player));
Beispiel #4
0
 public bool CanBeSold(WCPlayer wcPlayer, NPC vendor, Item[] shopInventory) => false;
Beispiel #5
0
 public bool CanContribute(Player player) => CanContribute(WCPlayer.Get(player).UniqueID);
Beispiel #6
0
 public bool IsContributor(Player player) => IsContributor(WCPlayer.Get(player).UniqueID);
Beispiel #7
0
 public bool IsOwner(Player player) => IsOwner(WCPlayer.Get(player).UniqueID);