{
  "code": "import { GamePool, PoolType } from \"../Game/GamePool\";\r\nimport { Mound } from \"../Game/Mound\";\r\nimport Dictionary from \"../Util/Dictionary\";\r\nexport class MoundManager {\r\n    static get Instance() {\r\n        return this.instance || (this.instance = new MoundManager());\r\n    }\r\n    constructor() {\r\n        this.MoundrDic = new Dictionary();\r\n    }\r\n    Init(da) {\r\n        this.moundContainer = da;\r\n    }\r\n    MakeMound(data) {\r\n        let tower = GamePool.Instance.GetModel(GamePool.modeltype.Mound);\r\n        if (!tower)\r\n            return;\r\n        this.moundContainer.addChild(tower);\r\n        let ts = tower.getComponent(Mound);\r\n        if (!ts)\r\n            ts = tower.addComponent(Mound);\r\n        ts.SetMound(data);\r\n        this.MoundrDic.set(tower.id, ts);\r\n    }\r\n    Reset() {\r\n        let arr = [];\r\n        for (const key in this.MoundrDic.container) {\r\n            arr.push(key);\r\n        }\r\n        if (arr.length > 0) {\r\n            for (let index = 0; index < arr.length; index++) {\r\n                const element = arr[index];\r\n                let s = this.MoundrDic.get(element);\r\n                if (s)\r\n                    s.Recovery();\r\n            }\r\n        }\r\n    }\r\n    RecoverMound(sp) {\r\n        this.MoundrDic.delete(sp.id);\r\n    }\r\n    HpUi() {\r\n        return GamePool.Instance.GetUi(PoolType.HpText);\r\n    }\r\n}\r\n//# sourceMappingURL=MoundManager.js.map",
  "references": [
    "E:/LayaProject/gungang/src/Game/GamePool.ts",
    "E:/LayaProject/gungang/src/Game/Mound.ts",
    "E:/LayaProject/gungang/src/Util/Dictionary.ts",
    "E:/LayaProject/gungang/src/Manager/MainRoleManager.ts",
    "E:/LayaProject/gungang/src/Manager/StreetManager.ts"
  ],
  "map": "{\"version\":3,\"file\":\"MoundManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Manager/MoundManager.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,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