Exemplo n.º 1
0
        // Use Api.Instance.PropApi.CreateProp for public construction
        internal Prop(
            PropsApiInternal propsApiInternal,
            int id,
            PropOptions options)
        {
            if (propsApiInternal == null)
            {
                throw new ArgumentNullException("propsApiInternal");
            }

            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            if (id == InvalidId)
            {
                throw new ArgumentException("invalid id");
            }

            m_propsApiInternal = propsApiInternal;
            Id = id;
            m_elevationMode = options.GetElevationMode();
            m_position.SetLatitude(options.GetLatitudeDegrees());
            m_position.SetLongitude(options.GetLongitudeDegrees());
            m_elevation        = options.GetElevation();
            m_indoorMapId      = options.GetIndoorMapId();
            m_indoorMapFloorId = options.GetIndoorMapFloorId();
            m_name             = options.GetName();
            m_geometryId       = options.GetGeometryId();
            m_headingDegrees   = options.GetHeadingDegrees();
        }
Exemplo n.º 2
0
 internal PropsApi(PropsApiInternal apiInternal)
 {
     m_apiInternal = apiInternal;
 }