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));
public bool CanBeSold(WCPlayer wcPlayer, NPC vendor, Item[] shopInventory) => false;
public bool CanContribute(Player player) => CanContribute(WCPlayer.Get(player).UniqueID);
public bool IsContributor(Player player) => IsContributor(WCPlayer.Get(player).UniqueID);
public bool IsOwner(Player player) => IsOwner(WCPlayer.Get(player).UniqueID);