// Use Create for public construction internal BuildingHighlight( BuildingsApiInternal buildingsApiInternal, int id, Color color, bool informationalOnly, BuildingInformationReceivedDelegate buildingInformationReceivedDelegate) { if (buildingsApiInternal == null) { throw new ArgumentNullException("buildingsApi"); } if (id == InvalidId) { throw new ArgumentException("invalid id"); } this.m_buildingsApiInternal = buildingsApiInternal; this.Id = id; this.m_color = color; this.IsInformationalOnly = informationalOnly; this.BuildingInformationReceivedDelegate = buildingInformationReceivedDelegate; }
/// <returns>This BuildingHighlightOptions instance, with the BuildingInformationReceivedDelegate set.</returns> public BuildingHighlightOptions BuildingInformationReceivedHandler(BuildingInformationReceivedDelegate handler) { m_buildingInformationReceivedHandler = handler; return(this); }