WarTornLands.Infrastructure.EntityBuilder.FindMatch C# (CSharp) Method

FindMatch() private method

private FindMatch ( int id ) : Zone
id int
return Zone
        private Zone FindMatch(int id)
        {
            foreach (ZoneVeil veil in _zoneContainer)
            {
                if (id == veil.ID)
                    return veil.Zone;
            }

            throw new Exception("No Zone with ID "+id+" found.");
        }