Ejemplo n.º 1
0
        internal IndoorMapsApi(IndoorMapsApiInternal apiInternal)
        {
            m_apiInternal = apiInternal;

            m_apiInternal.OnIndoorMapEnteredInternal += () => { if (OnIndoorMapEntered != null)
                                                                {
                                                                    OnIndoorMapEntered();
                                                                }
            };
            m_apiInternal.OnIndoorMapExitedInternal += () => { if (OnIndoorMapExited != null)
                                                               {
                                                                   OnIndoorMapExited();
                                                               }
            };
            m_apiInternal.OnIndoorMapFloorChangedInternal += () => { if (OnIndoorMapFloorChanged != null)
                                                                     {
                                                                         var floorId = GetCurrentFloorId(); OnIndoorMapFloorChanged(floorId);
                                                                     }
            };
            m_apiInternal.OnIndoorMapEntityClickedInternal += entityIds => { if (OnIndoorMapEntityClicked != null)
                                                                             {
                                                                                 OnIndoorMapEntityClicked(entityIds);
                                                                             }
            };
        }
Ejemplo n.º 2
0
 internal void Init(IntPtr nativeInstance, IIndoorMapMaterial material, IndoorMapsApiInternal internalAPI)
 {
     NativeInstance = nativeInstance;
     Material       = material;
     m_internalAPI  = internalAPI;
     OnRenderStateUpdated();
 }
Ejemplo n.º 3
0
        internal IndoorMapsApi(IndoorMapsApiInternal apiInternal)
        {
            m_apiInternal = apiInternal;

            m_apiInternal.OnIndoorMapEnteredInternal += () => { if (OnIndoorMapEntered != null)
                                                                {
                                                                    OnIndoorMapEntered();
                                                                }
            };
            m_apiInternal.OnIndoorMapExitedInternal += () => { if (OnIndoorMapExited != null)
                                                               {
                                                                   OnIndoorMapExited();
                                                               }
            };
            m_apiInternal.OnIndoorMapFloorChangedInternal += () => { if (OnIndoorMapFloorChanged != null)
                                                                     {
                                                                         var floorId = GetCurrentFloorId(); OnIndoorMapFloorChanged(floorId);
                                                                     }
            };

            // temporarily remove the warning re: OnIndoorMapEntityClicked being obsolete, we'll need to use it from here for as long as it remains supported
            #pragma warning disable 618
            m_apiInternal.OnIndoorMapEntityClickedInternal += entityIds => { if (OnIndoorMapEntityClicked != null)
                                                                             {
                                                                                 OnIndoorMapEntityClicked(entityIds);
                                                                             }
            };
            #pragma warning restore 618

            m_apiInternal.OnIndoorMapEntitiesClickedInternal += entityIds => { if (OnIndoorMapEntitiesClicked != null)
                                                                               {
                                                                                   OnIndoorMapEntitiesClicked(new IndoorMapEntitiesClicked(entityIds));
                                                                               }
            };
        }
Ejemplo n.º 4
0
 public IndoorMapMaterialService(IndoorMapMaterialRepository materialRepository, IndoorMapsApiInternal indoorMapsApiInternal)
 {
     m_materialRepository    = materialRepository;
     m_indoorMapsApiInternal = indoorMapsApiInternal;
     m_handleToSelf          = NativeInteropHelpers.AllocateNativeHandleForObject(this);
 }