// 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;
        }
Beispiel #2
0
 internal BuildingsApi(BuildingsApiInternal apiInternal)
 {
     m_apiInternal = apiInternal;
 }