| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- import { EncryptUtil } from "../util/EncryptUtil";
- import FileUtil from "../util/FileUtil";
- import GameUtil from "../util/GameUtil";
- import LoadResUtil from "../util/LoadResUtil";
- import LogUtil from "../util/LogUtil";
- import MathUtil from "../util/MathUtil";
- import StorageUtil from "../util/StorageUtil";
- import StringUtil from "../util/StringUtil";
- import TimeUtil from "../util/TimeUtil";
- import HttpSystem from "./HttpSystem";
- /**
- * @description mk系统
- * @author 邹勇,冯聪,薛鸿潇,kaka
- */
- class MKSystem {
- constructor() {
- }
- /** 工具 */
- private _time: TimeUtil;
- public get time(): TimeUtil {
- return this._time || (this._time = new TimeUtil());
- }
- private _file: FileUtil;
- public get file(): FileUtil {
- return this._file || (this._file = new FileUtil());
- }
- private _encrypt: EncryptUtil;
- public get encrypt(): EncryptUtil {
- return this._encrypt || (this._encrypt = new EncryptUtil());
- }
- private _console: LogUtil;
- public get console(): LogUtil {
- return this._console || (this._console = new LogUtil());
- }
- private _game: GameUtil;
- public get game(): GameUtil {
- return this._game || (this._game = new GameUtil());
- }
- private _loader: LoadResUtil;
- public get loader(): LoadResUtil {
- return this._loader || (this._loader = new LoadResUtil());
- }
- private _storage: StorageUtil;
- public get storage(): StorageUtil {
- return this._storage || (this._storage = new StorageUtil());
- }
- private _math: MathUtil;
- public get math(): MathUtil {
- return this._math || (this._math = new MathUtil());
- }
- private _string: StringUtil;
- public get string(): StringUtil {
- return this._string || (this._string = new StringUtil());
- }
- private _http: HttpSystem;
- public get http(): HttpSystem {
- return this._http || (this._http = new HttpSystem());
- }
- }
- declare global {
- /** 牛逼的梦嘉引擎 */
- const mk: MKSystem;
- }
- window['mk'] = new MKSystem();
|