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); } }; }
internal void Init(IntPtr nativeInstance, IIndoorMapMaterial material, IndoorMapsApiInternal internalAPI) { NativeInstance = nativeInstance; Material = material; m_internalAPI = internalAPI; OnRenderStateUpdated(); }
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)); } }; }
public IndoorMapMaterialService(IndoorMapMaterialRepository materialRepository, IndoorMapsApiInternal indoorMapsApiInternal) { m_materialRepository = materialRepository; m_indoorMapsApiInternal = indoorMapsApiInternal; m_handleToSelf = NativeInteropHelpers.AllocateNativeHandleForObject(this); }