import { Language } from "./base/Language" ; import { EventDispatcher } from "./event/EventDispatcher" ; import { UIManager } from "./base/UIManager" ; import { LocalStorage } from "./base/LocalStorage" ; import { AssetManager } from "./assetManager/AssetManager" ; import { CacheManager } from "./assetManager/CacheManager" ; import { ResolutionHelper } from "./adaptor/ResolutionHelper" ; import { getSingleton } from "./base/Singleton" ; import TipsDelegate from "./ui/TipsDelegate" ; import UILoadingDelegate from "./ui/UILoadingDelegate" ; export class _FramewokManager { description get language ( ) { return getSingleton ( Language ) ; } description get eventDispatcher ( ) { return getSingleton ( EventDispatcher ) ; } description get uiManager ( ) { return getSingleton ( UIManager ) ; } description get localStorage ( ) { return getSingleton ( LocalStorage ) ; } description get assetManager ( ) { return getSingleton ( AssetManager ) ; } description get cacheManager ( ) { return getSingleton ( CacheManager ) ; } description get resolutionHelper ( ) { return getSingleton ( ResolutionHelper ) ; } private _tips : TipsDelegate = null ; description get tips ( ) { return this . _tips ; } set tips ( value ) { this . _tips = value ; } private _uiLoading : UILoadingDelegate = null ; description get uiLoading ( ) { return this . _uiLoading ; } set uiLoading ( value ) { this . _uiLoading = value ; } } export const Manager = new _FramewokManager ( ) ;