добавил build_yantar

This commit is contained in:
Georgy Shive 2025-02-12 06:46:43 +07:00
parent 9ce55943b5
commit 664e7a2049
203 changed files with 392 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.idea

61
code/application.js Normal file
View File

@ -0,0 +1,61 @@
System.register([], function (_export, _context) {
"use strict";
var cc, Application;
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
return {
setters: [],
execute: function () {
_export("Application", Application = /*#__PURE__*/function () {
function Application() {
_classCallCheck(this, Application);
this.settingsPath = 'src/settings.json';
this.showFPS = false;
}
_createClass(Application, [{
key: "init",
value: function init(engine) {
cc = engine;
cc.game.onPostBaseInitDelegate.add(this.onPostInitBase.bind(this));
cc.game.onPostSubsystemInitDelegate.add(this.onPostSystemInit.bind(this));
}
}, {
key: "onPostInitBase",
value: function onPostInitBase() {
// cc.settings.overrideSettings('assets', 'server', '');
// do custom logic
}
}, {
key: "onPostSystemInit",
value: function onPostSystemInit() {
// do custom logic
}
}, {
key: "start",
value: function start() {
return cc.game.init({
debugMode: false ? cc.DebugMode.INFO : cc.DebugMode.ERROR,
settingsPath: this.settingsPath,
overrideSettings: {
// assets: {
// preloadBundles: [{ bundle: 'main', version: 'xxx' }],
// }
profiling: {
showFPS: this.showFPS
}
}
}).then(function () {
return cc.game.run();
});
}
}]);
return Application;
}());
}
};
});

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
[1,["c89m0XNRpI2qEsAhLShXXE","e2Y/hxG/5JJ4f+EuJgfHP4@b811d","e2Y/hxG/5JJ4f+EuJgfHP4@63096"],["_effectAsset","root","node","data","_mesh"],[["cc.Node",["_name","_prefab","_children","_parent","_components","_lpos"],2,4,2,1,9,5],["cc.Material",["_name","_props","_states","_defines"],-1],["cc.Prefab",["_name"],2],["cc.PrefabInfo",["fileId","instance","targetOverrides","nestedPrefabInstanceRoots","root","asset"],-1,1,1],["cc.MeshRenderer",["_shadowCastingMode","node","__prefab","_materials","bakeSettings","_mesh"],2,1,4,3,4,6],["cc.CompPrefabInfo",["fileId"],2],["cc.ModelBakeSettings",["_castShadow","_receiveShadow"],1]],[[3,0,1,2,3,4,5,5],[1,0,1,2,3,5],[2,0,2],[0,0,2,1,2],[0,0,3,4,1,5,2],[4,0,1,2,3,4,5,2],[5,0,2],[6,0,1,3]],[[[[1,"CT MATERIAL_A",[{"occlusion":0}],[{"rasterizerState":{"cullMode":0},"blendState":{"targets":[{}]},"depthStencilState":{}}],[{}]]],0,0,[0],[0],[0]],[[[2,"73_collider"],[3,"73_collider",[-2],[0,"2awJwomwZV7Z9gTNZCgeTQ",null,null,null,-1,0]],[4,"UBX_DefaultRootName_001",1,[[5,1,-3,[6,"b6yTklyuVWYbY63yitocOd"],[0],[7,true,true],1]],[0,"5ctwZDSiVb26shLHihHeGy",null,null,null,1,0],[1,72.18412780761719,22.281278610229492,-38.93197250366211]]],0,[0,1,1,0,-1,2,0,2,2,0,3,1,3],[0,0],[-1,4],[1,2]]]]

View File

@ -0,0 +1 @@
{"type":"cc.Texture2D","data":[["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@1f3c6"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@f1375"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@f1375"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@caddf"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@0ef36"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@f1375"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@d8bd3"]]]}

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1,20 @@
System.register("chunks:///_virtual/3d_models",[],(function(){return{execute:function(){}}}));
(function(r) {
r('virtual:///prerequisite-imports/3d_models', 'chunks:///_virtual/3d_models');
})(function(mid, cid) {
System.register(mid, [cid], function (_export, _context) {
return {
setters: [function(_m) {
var _exportObj = {};
for (var _key in _m) {
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
}
_export(_exportObj);
}],
execute: function () { }
};
});
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

View File

@ -0,0 +1 @@
{"importBase":"import","nativeBase":"native","name":"Materials","deps":["main"],"uuids":["0by2OqhTtD6KVmY6y0fvqN","87cJVYNlpFCqZOYVSlxe8Y"],"paths":{"0":["YellowPulseMaterial",0,1],"1":["RedPulseMaterial",0,1]},"scenes":{},"packs":{},"versions":{"import":[],"native":[]},"redirect":[0,"0",1,"0"],"debug":false,"extensionMap":{},"hasPreloadScript":true,"dependencyRelationships":{},"types":["cc.Material"]}

View File

@ -0,0 +1,20 @@
System.register("chunks:///_virtual/Materials",[],(function(){return{execute:function(){}}}));
(function(r) {
r('virtual:///prerequisite-imports/Materials', 'chunks:///_virtual/Materials');
})(function(mid, cid) {
System.register(mid, [cid], function (_export, _context) {
return {
setters: [function(_m) {
var _exportObj = {};
for (var _key in _m) {
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
}
_export(_exportObj);
}],
execute: function () { }
};
});
});

View File

@ -0,0 +1 @@
{"importBase":"import","nativeBase":"native","name":"internal","deps":[],"uuids":["08HKsx3M1CjoZS8kBMyBxH","0fcbd05f8","142hclxMJCtKsI7grraJiz","173rzDCmtLirAL3Fi4hVge","1cAq5vRJJJFbj4dJKjseTN","1dCO9ipQNM4ouaRskIc/fT","509DSLyINOL48RziM7hZ+h","51HSYzCadL3axC93gDISSz","5dRaoA4GRJOLMUQmXwwiWM","609xlc7CpF67qUiVX2DoHQ","6aLQc0vZ5N35RuyqUkmMt1","71Hr4R9nNM2ZqDY8YLpUxb","784FhKQ0NHJ4834U5lwqLb","81Dpbk5FZEaJtZ9OjzlzLA","87HDtsc3lBnb2jeUsjmrkN","8bvbzdXNRBALbVt8liW2EH","93Yf2QulJPhKqTboeP1XbK","97CwWYvLBHFJH7LoFEDczY","97G9sjP/ZD67QiHDAWWjZj","a3zQCfCrBCDZJ4uf2rk5u8","b51hFfA3BNfKrTwZTMcc+Y","baIUdvKGZPgZxNbjWTFuRI","bc1kzGLdlD9qu+ZjGNMyAy","c0FDkGmu1EfpQ2KuhRLRtu","c2chXYaDVLaL+7verGEAwE","d1NGQ2rJZCcbhjH0/erZWw","d9MFkNu5JMyIvRI80Cf57f","ddOhRNq39B8IK4LkOgkNSW","e9qpo+WytKx6LHBz3isrJP","ef6OKj6s5Ce7Txy4qTfsd9","f0QW5oAgBLd6kmT50W5JTa","f9KAbXF2hEP6/oErzehNDw","fdoJXLgx1GAa2UhGATlj3o"],"paths":{"0":["db:/internal/default_materials/default-trail-material",1,1],"2":["db:/internal/default_materials/default-particle-gpu-material",1,1],"3":["db:/internal/effects/particles/builtin-particle-trail",0,1],"4":["db:/internal/effects/internal/builtin-graphics",0,1],"5":["db:/internal/effects/legacy/terrain",0,1],"6":["db:/internal/default_materials/ui-alpha-test-material",1,1],"7":["db:/internal/effects/pipeline/skybox",0,1],"8":["db:/internal/effects/pipeline/deferred-lighting",0,1],"9":["db:/internal/effects/for2d/builtin-sprite",0,1],"10":["db:/internal/effects/pipeline/post-process/tone-mapping",0,1],"11":["db:/internal/effects/particles/builtin-billboard",0,1],"12":["db:/internal/default_materials/default-billboard-material",1,1],"13":["db:/internal/effects/internal/builtin-clear-stencil",0,1],"14":["db:/internal/effects/util/profiler",0,1],"15":["db:/internal/default_materials/default-clear-stencil",1,1],"16":["db:/internal/effects/pipeline/planar-shadow",0,1],"17":["db:/internal/effects/util/splash-screen",0,1],"18":["db:/internal/effects/particles/builtin-particle-gpu",0,1],"19":["db:/internal/effects/builtin-unlit",0,1],"20":["db:/internal/default_materials/default-spine-material",1,1],"21":["db:/internal/physics/default-physics-material",2,1],"22":["db:/internal/default_materials/missing-effect-material",1,1],"23":["db:/internal/default_materials/default-particle-material",1,1],"24":["db:/internal/effects/for2d/builtin-spine",0,1],"25":["db:/internal/effects/particles/builtin-particle",0,1],"26":["db:/internal/default_materials/missing-material",1,1],"27":["db:/internal/default_materials/ui-sprite-gray-alpha-sep-material",1,1],"28":["db:/internal/default_materials/ui-base-material",1,1],"29":["db:/internal/default_materials/ui-sprite-gray-material",1,1],"30":["db:/internal/default_materials/ui-graphics-material",1,1],"31":["db:/internal/default_materials/ui-sprite-alpha-sep-material",1,1],"32":["db:/internal/default_materials/ui-sprite-material",1,1]},"scenes":{},"packs":{"0fcbd05f8":[0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]},"versions":{"import":[],"native":[]},"redirect":[],"debug":false,"extensionMap":{},"hasPreloadScript":true,"dependencyRelationships":{},"types":["cc.EffectAsset","cc.Material","cc.PhysicsMaterial"]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset","cc.TextureCube"],0,[[[{"base":"2,2,0,0,2,0","rgbe":false,"mipmaps":[{"front":"6fAc9/gb9Kfr1dCvwZaWSA@b47c0@e9a6d","back":"6fAc9/gb9Kfr1dCvwZaWSA@b47c0@40c10","left":"6fAc9/gb9Kfr1dCvwZaWSA@b47c0@8fd34","right":"6fAc9/gb9Kfr1dCvwZaWSA@b47c0@74afd","top":"6fAc9/gb9Kfr1dCvwZaWSA@b47c0@bb97f","bottom":"6fAc9/gb9Kfr1dCvwZaWSA@b47c0@7d38f"}]}],[1],0,[],[],[]],[[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]],[[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]],[[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]],[[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]],[[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]],[[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]]]

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"type":"cc.Texture2D","data":[["2,2,2,2,0,0",["54TknWPwVPqJqeCR+Y/Czo"]],["2,2,2,2,0,0",["20g1ukYUVPvKWKBRznAKo+"]],["2,2,2,2,0,0",["afxHkx8GZGsJC+n+YfITQo"]],["2,2,2,2,0,0",["b7MFJ8MjNBwqr3fNq1j5dJ"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@6ee89"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@2e78d"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@07f2f"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@6af60"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@87329"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@8f420"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@db620"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@e5e90"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@5501b"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@31c60"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@5f29a"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@3f79a"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@2f00a"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@90611"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@d5db4"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@d0c04"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@8222a"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@e73c6"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@f2d5a"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@a0c07"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@8c06b"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@e461a"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@6fe55"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@e6790"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@5f893"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@f9ec9"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@8c06b"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@54d9f"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@e1124"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@a1f5c"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@39e53"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@5501b"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@eb942"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@5c5bd"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@6cae0"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@bf0b5"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@6fe55"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@0fa64"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@9333c"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@7597f"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@b4805"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@95418"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@48729"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@1f444"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@8c06b"]],["2,2,0,0,2,0",["e4sZyu/AFCepU5HK+e0zbc@e5ade"]],["2,2,2,2,0,0",["f1KiPEuSRDIqJgPZgkKPHo"]],["2,2,2,2,0,0",["ffuIqPr2JI9I8dPLYGRDpD"]]]}

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"1","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,[["RenderQueueDesc",["stages","isTransparent","sortMode"],0],["ForwardPipeline",["_flows"],3,9],["ShadowFlow",["_name","_stages"],2,9],["ShadowStage",["_name"],2],["ForwardFlow",["_name","_priority","_stages"],1,9],["ForwardStage",["_name","renderQueues"],2,9]],[[1,0,1],[2,0,1,2],[3,0,2],[4,0,1,2,3],[5,0,1,2],[0,0,2],[0,1,2,0,4]],[[0,[[1,"ShadowFlow",[[2,"ShadowStage"]]],[3,"ForwardFlow",1,[[4,"ForwardStage",[[5,["default"]],[6,true,1,["default"]]]]]]]]],0,0,[],[],[]]

View File

@ -0,0 +1 @@
[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":0,"h":0},-1],[0],0,[],[],[]]

46
code/assets/main/index.js Normal file
View File

@ -0,0 +1,46 @@
System.register("chunks:///_virtual/apiSensors.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(i){var e,t,r,n;return{setters:[function(i){e=i.applyDecoratedDescriptor,t=i.initializerDefineProperty},function(i){r=i.cclegacy,n=i._decorator}],execute:function(){var o,a,l,u,c,s,p,b,f,h;r._RF.push({},"451acwCTa1LL6xezvkqFCFR","apiSensors",void 0);var g=n.ccclass,y=n.property;i("apiSensors",g("apiSensors")((l=e((a=function(){t(this,"connect_time",l,this),t(this,"isServicing",u,this),t(this,"name",c,this),t(this,"position",s,this),t(this,"quality",p,this),t(this,"tag",b,this),t(this,"value",f,this),t(this,"zone",h,this)}).prototype,"connect_time",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),u=e(a.prototype,"isServicing",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=e(a.prototype,"name",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),s=e(a.prototype,"position",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),p=e(a.prototype,"quality",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b=e(a.prototype,"tag",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),f=e(a.prototype,"value",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),h=e(a.prototype,"zone",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=a))||o);r._RF.pop()}}}));
System.register("chunks:///_virtual/CameraMover.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var r,n,o,t,a,i,l,c,s,u,m;return{setters:[function(e){r=e.applyDecoratedDescriptor,n=e.inheritsLoose,o=e.initializerDefineProperty,t=e.assertThisInitialized},function(e){a=e.cclegacy,i=e._decorator,l=e.CameraComponent,c=e.MeshRenderer,s=e.geometry,u=e.tween,m=e.Component}],execute:function(){var p,d,f,h,v,y;a._RF.push({},"6e9d1pTCW9PELDNeLCm44VF","CameraMover",void 0);var w=i.ccclass,g=i.property;e("CameraMover",(p=w("CameraMover"),d=g({type:l}),p((v=r((h=function(e){function r(){for(var r,n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=e.call.apply(e,[this].concat(a))||this,o(r,"camera",v,t(r)),o(r,"transitionTime",y,t(r)),r}return n(r,e),r.prototype.moveToTarget=function(e){var r,n,o=this;if(this.camera){var t=e.getComponent(c);if(t){var a=new s.AABB;if(null==(r=t.model)||r.updateWorldBound(),null!=(n=t.model)&&n.worldBounds){a.copy(t.model.worldBounds);var i=a.center.clone(),l=a.halfExtents.clone().multiplyScalar(2),m=Math.max(l.x,l.y,l.z),p=this.camera.fov*(Math.PI/180),d=m/(2*Math.tan(p/2))+5,f=this.camera.node.forward.negative(),h=i.clone().add(f.multiplyScalar(d));console.log("🎥 Перемещение камеры к "+e.name),u(this.camera.node).to(this.transitionTime,{position:h}).call((function(){var e;return null==(e=o.camera)?void 0:e.node.lookAt(i)})).start()}else console.warn("⚠️ Не удалось получить worldBounds у "+e.name)}else console.warn("⚠️ У объекта "+e.name+" нет MeshRenderer!")}else console.warn("🚨 Камера не найдена!")},r}(m)).prototype,"camera",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=r(h.prototype,"transitionTime",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),f=h))||f));a._RF.pop()}}}));
System.register("chunks:///_virtual/equipmentListSwitch.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,e,r,n,o,s,l,u,c,p,a;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.inheritsLoose,r=t.initializerDefineProperty,n=t.assertThisInitialized},function(t){o=t.cclegacy,s=t._decorator,l=t.Label,u=t.Sprite,c=t.Color,p=t.Node,a=t.Component}],execute:function(){var g,h,m,b,f,L,q,y,w,B,v;o._RF.push({},"41a9dZz2mVOFoYwOsk9H98q","equipmentListSwitch",void 0);var d=s.ccclass,z=s.property;t("equipmentListSwitch",(g=d("equipmentListSwitch"),h=z(l),m=z(u),b=z(c),f=z(p),g((y=i((q=function(t){function i(){for(var i,e=arguments.length,o=new Array(e),s=0;s<e;s++)o[s]=arguments[s];return i=t.call.apply(t,[this].concat(o))||this,r(i,"equipmentLb",y,n(i)),r(i,"spriteBg",w,n(i)),r(i,"colorBg",B,n(i)),r(i,"equipmentList",v,n(i)),i.isOnToggle=!1,i}e(i,t);var o=i.prototype;return o.start=function(){this.spriteBg.color=this.colorBg[0],this.equipmentList.active=!1,this.equipmentLb.string="показать список"},o.equipmentSwitch=function(){this.isOnToggle?(this.isOnToggle=!1,this.equipmentLb.string="показать список",this.spriteBg.color=this.colorBg[0],this.equipmentList.active=!1):(this.isOnToggle=!0,this.equipmentLb.string="спрятать список",this.spriteBg.color=this.colorBg[1],this.equipmentList.active=!0)},i}(a)).prototype,"equipmentLb",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=i(q.prototype,"spriteBg",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=i(q.prototype,"colorBg",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=i(q.prototype,"equipmentList",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=q))||L));o._RF.pop()}}}));
System.register("chunks:///_virtual/EquipmentManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Mutex.ts"],(function(t){var e,r,n,a,i,s,o,u,c,l,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,r=t.inheritsLoose,n=t.createClass,a=t.initializerDefineProperty,i=t.assertThisInitialized,s=t.asyncToGenerator,o=t.regeneratorRuntime},function(t){u=t.cclegacy,c=t._decorator,l=t.Component},function(t){p=t.Mutex}],execute:function(){var h,d,f,v;u._RF.push({},"bdf50LzsO9GkrF5oSw4uDK/","EquipmentManager",void 0);var m=c.ccclass,_=c.property;t("EquipmentManager",m("EquipmentManager")(((v=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return e=t.call.apply(t,[this].concat(n))||this,a(e,"apiUrl",f,i(e)),e._dataList=[],e.totalCount=0,e._intervalId=null,e._mutex=new p,e}r(e,t);var u=e.prototype;return u.onLoad=function(){var t=this;e.instance=this,this.loadItems(),this._intervalId=window.setInterval((function(){t.loadItems()}),1e4)},u.loadItems=function(){var t=s(o().mark((function t(){var e,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._mutex.acquire();case 2:return t.prev=2,t.next=5,fetch(this.apiUrl);case 5:return e=t.sent,t.next=8,e.json();case 8:(r=t.sent)&&r.items&&Array.isArray(r.items)?(this._dataList=r.items,this.totalCount=this._dataList.length,console.log("Данные оборудования обновлены:",this._dataList),this.node.emit("data-updated")):console.error("Некорректный формат данных",r),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),console.error("Ошибка при загрузке данных:",t.t0);case 15:return t.prev=15,this._mutex.release(),t.finish(15);case 18:case"end":return t.stop()}}),t,this,[[2,12,15,18]])})));return function(){return t.apply(this,arguments)}}(),u.getDataList=function(){var t=s(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._mutex.acquire();case 2:return e=this._dataList,this._mutex.release(),t.abrupt("return",e);case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),u.onDestroy=function(){null!==this._intervalId&&(window.clearInterval(this._intervalId),this._intervalId=null)},n(e,[{key:"dataList",get:function(){return this._dataList}}]),e}(l)).instance=void 0,f=e((d=v).prototype,"apiUrl",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"http://192.168.10.3/api/v2/scada/sensors/"}}),h=d))||h);u._RF.pop()}}}));
System.register("chunks:///_virtual/FirstPersonController.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,o,i,n,s,r,a,l,c,h,u,p,_;return{setters:[function(e){t=e.applyDecoratedDescriptor,o=e.inheritsLoose,i=e.initializerDefineProperty,n=e.assertThisInitialized},function(e){s=e.cclegacy,r=e._decorator,a=e.Node,l=e.input,c=e.Input,h=e.KeyCode,u=e.Quat,p=e.Vec3,_=e.Component}],execute:function(){var m,d,f,v,E,y,S,M,D,b;s._RF.push({},"5d80eQJlnxA9ooItxxIqddm","FirstPersonController",void 0);var g=r.ccclass,w=r.property;e("FirstPersonController",(m=g("FirstPersonController"),d=w({type:a}),m((E=t((v=function(e){function t(){for(var t,o=arguments.length,s=new Array(o),r=0;r<o;r++)s[r]=arguments[r];return t=e.call.apply(e,[this].concat(s))||this,i(t,"camera",E,n(t)),i(t,"moveSpeed",y,n(t)),i(t,"lookSpeed",S,n(t)),i(t,"speedStep",M,n(t)),i(t,"minSpeed",D,n(t)),i(t,"maxSpeed",b,n(t)),t._moveDirection=new p,t._eulerAngles=new p,t._isLeftMousePressed=!1,t}o(t,e);var s=t.prototype;return s.onLoad=function(){l.on(c.EventType.KEY_DOWN,this._onKeyDown,this),l.on(c.EventType.KEY_UP,this._onKeyUp,this),l.on(c.EventType.MOUSE_DOWN,this._onMouseDown,this),l.on(c.EventType.MOUSE_UP,this._onMouseUp,this),l.on(c.EventType.MOUSE_MOVE,this._onMouseMove,this),l.on(c.EventType.MOUSE_WHEEL,this._onMouseWheel,this),this.camera&&(this._eulerAngles=this.camera.eulerAngles.clone())},s.onDestroy=function(){l.off(c.EventType.KEY_DOWN,this._onKeyDown,this),l.off(c.EventType.KEY_UP,this._onKeyUp,this),l.off(c.EventType.MOUSE_DOWN,this._onMouseDown,this),l.off(c.EventType.MOUSE_UP,this._onMouseUp,this),l.off(c.EventType.MOUSE_MOVE,this._onMouseMove,this),l.off(c.EventType.MOUSE_WHEEL,this._onMouseWheel,this)},s._onKeyDown=function(e){switch(e.keyCode){case h.KEY_W:this._moveDirection.z=1;break;case h.KEY_S:this._moveDirection.z=-1;break;case h.KEY_A:this._moveDirection.x=-1;break;case h.KEY_D:this._moveDirection.x=1;break;case h.KEY_Q:this._moveDirection.y=-1;break;case h.KEY_E:this._moveDirection.y=1}},s._onKeyUp=function(e){switch(e.keyCode){case h.KEY_W:case h.KEY_S:this._moveDirection.z=0;break;case h.KEY_A:case h.KEY_D:this._moveDirection.x=0;break;case h.KEY_Q:case h.KEY_E:this._moveDirection.y=0}},s._onMouseDown=function(e){0===e.getButton()&&(this._isLeftMousePressed=!0)},s._onMouseUp=function(e){0===e.getButton()&&(this._isLeftMousePressed=!1)},s._onMouseMove=function(e){if(this.camera&&this._isLeftMousePressed){this._eulerAngles.y-=e.movementX*this.lookSpeed,this._eulerAngles.x-=e.movementY*this.lookSpeed,this._eulerAngles.x=Math.max(-89,Math.min(89,this._eulerAngles.x));var t=u.fromEuler(new u,this._eulerAngles.x,this._eulerAngles.y,0);this.camera.setRotation(t)}},s._onMouseWheel=function(e){e.getScrollY()>0?this.moveSpeed=Math.min(this.moveSpeed+this.speedStep,this.maxSpeed):e.getScrollY()<0&&(this.moveSpeed=Math.max(this.moveSpeed-this.speedStep,this.minSpeed)),console.log("Current move speed: "+this.moveSpeed)},s.update=function(e){if(this.camera){var t=p.transformQuat(new p,p.FORWARD,this.camera.worldRotation),o=p.transformQuat(new p,p.RIGHT,this.camera.worldRotation),i=p.UP,n=new p;p.scaleAndAdd(n,n,t,this._moveDirection.z*this.moveSpeed*e),p.scaleAndAdd(n,n,o,this._moveDirection.x*this.moveSpeed*e),p.scaleAndAdd(n,n,i,this._moveDirection.y*this.moveSpeed*e),this.node.translate(n)}},t}(_)).prototype,"camera",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=t(v.prototype,"moveSpeed",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),S=t(v.prototype,"lookSpeed",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.1}}),M=t(v.prototype,"speedStep",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),D=t(v.prototype,"minSpeed",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),b=t(v.prototype,"maxSpeed",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 20}}),f=v))||f));s._RF.pop()}}}));
System.register("chunks:///_virtual/ItemButton.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,n,i,r,a,o,l,u,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.inheritsLoose,i=t.initializerDefineProperty,r=t.assertThisInitialized},function(t){a=t.cclegacy,o=t._decorator,l=t.Label,u=t.Button,c=t.Component}],execute:function(){var s,m,p,b,f,h,L,y,g;a._RF.push({},"e5a794S61FLarSaWsI+BZm6","ItemButton",void 0);var v=o.ccclass,B=o.property;t("ItemButton",(s=v("ItemButton"),m=B(l),p=B(l),b=B(u),s((L=e((h=function(t){function e(){for(var e,n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return e=t.call.apply(t,[this].concat(a))||this,i(e,"nameLabel",L,r(e)),i(e,"timeLabel",y,r(e)),i(e,"button",g,r(e)),e.itemIndex=0,e.itemData=null,e}n(e,t);var a=e.prototype;return a.initialize=function(t){this.itemData=t,this.nameLabel&&(this.nameLabel.string=t.name),this.timeLabel&&(this.timeLabel.string=t.connect_time)},a.onClick=function(){console.log("Нажата кнопка для элемента:",this.itemData)},e}(c)).prototype,"nameLabel",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=e(h.prototype,"timeLabel",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=e(h.prototype,"button",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=h))||f));a._RF.pop()}}}));
System.register("chunks:///_virtual/main",["./CameraMover.ts","./FirstPersonController.ts","./ModelSelector.ts","./PulsatingHighlighter.ts","./Mutex.ts","./EquipmentManager.ts","./apiSensors.ts","./ToggleManage.ts","./VirtualList.ts","./WallTextSwitch.ts","./equipmentListSwitch.ts","./ItemButton.ts","./switchWalls.ts"],(function(){return{setters:[null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){}}}));
System.register("chunks:///_virtual/ModelSelector.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PulsatingHighlighter.ts","./CameraMover.ts"],(function(e){var t,o,n,r,i,c,a,s,l,u,h,p,y,f,g;return{setters:[function(e){t=e.applyDecoratedDescriptor,o=e.inheritsLoose,n=e.initializerDefineProperty,r=e.assertThisInitialized},function(e){i=e.cclegacy,c=e._decorator,a=e.CameraComponent,s=e.input,l=e.Input,u=e.Vec3,h=e.PhysicsSystem,p=e.geometry,y=e.Component},function(e){f=e.PulsatingHighlighter},function(e){g=e.CameraMover}],execute:function(){var m,_,C,v,d,M,k;i._RF.push({},"96ff6EZCmtHRYuI/W42BPVH","ModelSelector",void 0);var R=c.ccclass,b=c.property;e("ModelSelector",(m=R("ModelSelector"),_=b({type:a}),C=b({type:g}),m((M=t((d=function(e){function t(){for(var t,o=arguments.length,i=new Array(o),c=0;c<o;c++)i[c]=arguments[c];return t=e.call.apply(e,[this].concat(i))||this,n(t,"camera",M,r(t)),n(t,"cameraMover",k,r(t)),t._ray=new p.Ray,t._clickCount=0,t._doubleClickThreshold=.3,t}o(t,e);var i=t.prototype;return i.onLoad=function(){s.on(l.EventType.MOUSE_UP,this._onMouseUp,this)},i.onDestroy=function(){s.off(l.EventType.MOUSE_UP,this._onMouseUp,this)},i._onMouseUp=function(e){2===e.getButton()&&(console.log("🖱 Правый клик зафиксирован!"),this.unschedule(this._resetClickCount),this._clickCount++,2===this._clickCount?(console.log("✅ Двойной клик зафиксирован!"),this._performRaycast(e),this._clickCount=0):this.scheduleOnce(this._resetClickCount,this._doubleClickThreshold))},i._resetClickCount=function(){this._clickCount=0,console.log("⏳ Сброс двойного клика из-за таймаута.")},i._performRaycast=function(e){if(this.camera){var t=new u(e.getLocationX(),e.getLocationY(),0);if(this.camera.screenPointToRay(t.x,t.y,this._ray),console.log("🔍 Запускаем raycast..."),h.instance.raycast(this._ray)){var o=h.instance.raycastResults;if(o.length>0){var n=o[0].collider.node;console.log("🎯 Попадание по объекту: "+n.name),this._highlightModel(n,"red"),this._moveCamera(n)}else console.log("❌ Raycast ничего не нашел.")}else console.log("⚠️ Raycast не сработал.")}else console.warn("🚨 Камера не найдена!")},i._highlightModel=function(e,t){var o=e.getComponent(f);o&&o.switchToColor(t)},i._moveCamera=function(e){this.cameraMover?this.cameraMover.moveToTarget(e):console.warn("🚨 CameraMover не подключен!")},t}(y)).prototype,"camera",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(d.prototype,"cameraMover",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=d))||v));i._RF.pop()}}}));
System.register("chunks:///_virtual/Mutex.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,r,n,u;return{setters:[function(e){t=e.asyncToGenerator,r=e.regeneratorRuntime},function(e){n=e.cclegacy,u=e._decorator}],execute:function(){var c;n._RF.push({},"84efdsL2ZBGBIfNkxtYiT7w","Mutex",void 0);var i=u.ccclass;e("Mutex",i("Mutex")(c=function(){function e(){this.queue=[],this.locked=!1}var n=e.prototype;return n.acquire=function(){var e=t(r().mark((function e(){var t=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.locked){e.next=3;break}return this.locked=!0,e.abrupt("return");case 3:return e.abrupt("return",new Promise((function(e){return t.queue.push(e)})));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),n.release=function(){if(this.queue.length>0){var e=this.queue.shift();e&&e()}else this.locked=!1},e}())||c);n._RF.pop()}}}));
System.register("chunks:///_virtual/PulsatingHighlighter.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,i,r,n,a,l,o,s,c,h;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,r=t.initializerDefineProperty,n=t.assertThisInitialized},function(t){a=t.cclegacy,l=t._decorator,o=t.Material,s=t.MeshRenderer,c=t.math,h=t.Component}],execute:function(){var u,p,g,_,d,f,v,m;a._RF.push({},"04b2bx0wWRFNZUDzjOKuS7p","PulsatingHighlighter",void 0);var y=l.ccclass,M=l.property;t("PulsatingHighlighter",(u=y("PulsatingHighlighter"),p=M(o),g=M(o),u(((m=function(t){function e(){for(var e,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return e=t.call.apply(t,[this].concat(a))||this,r(e,"redMaterial",f,n(e)),r(e,"yellowMaterial",v,n(e)),e._originalMaterials=[],e._currentAlpha=0,e._direction=1,e._animationSpeed=3,e}i(e,t);var a=e.prototype;return a.onLoad=function(){this._storeOriginalMaterials()},a._storeOriginalMaterials=function(){var t=this.node.getComponent(s);t&&(this._originalMaterials=t.materials.filter((function(t){return!!t})).map((function(t){var e=new o;return e.copy(t),e})))},a.switchToColor=function(t){var i=this,r=this.node.getComponent(s);if(r){e._activeInstance&&e._activeInstance!==this&&e._activeInstance.resetHighlight(),e._activeInstance=this;var n=null;if("red"===t&&this.redMaterial)n=this.redMaterial;else{if("yellow"!==t||!this.yellowMaterial)return void console.warn('⚠️ Неизвестный цвет "'+t+'", используем оригинальный.');n=this.yellowMaterial}var a=new o;a.copy(n),r.materials=r.materials.map((function(){return a})),this._currentAlpha=0,this._direction=1,this.schedule(this._updateAlpha,.016),this.scheduleOnce((function(){e._activeInstance===i&&(i.resetHighlight(),e._activeInstance=null)}),10)}},a._updateAlpha=function(){var t=this;this._currentAlpha+=this._direction*this._animationSpeed,this._currentAlpha=c.clamp(this._currentAlpha,0,255),255!==this._currentAlpha&&0!==this._currentAlpha||(this._direction*=-1);var e=this.node.getComponent(s);e&&e.materials.forEach((function(e){var i=null==e?void 0:e.getProperty("mainColor");i.a=t._currentAlpha,null==e||e.setProperty("mainColor",i)}))},a.resetHighlight=function(){this.unschedule(this._updateAlpha),this.unscheduleAllCallbacks(),this._restoreOriginalMaterials()},a._restoreOriginalMaterials=function(){var t=this.node.getComponent(s);t&&(t.materials=this._originalMaterials.map((function(t){var e=new o;return e.copy(t),e})))},a.onDestroy=function(){this.unscheduleAllCallbacks()},e}(h))._activeInstance=null,f=e((d=m).prototype,"redMaterial",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=e(d.prototype,"yellowMaterial",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=d))||_));a._RF.pop()}}}));
System.register("chunks:///_virtual/switchWalls.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,i,l,r,n,s,c,a;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,l=t.initializerDefineProperty,r=t.assertThisInitialized},function(t){n=t.cclegacy,s=t._decorator,c=t.Node,a=t.Component}],execute:function(){var o,u,p,h,f;n._RF.push({},"c6cc9hNiE5Axr2R3ChCk2AB","switchWalls",void 0);var g=s.ccclass,y=s.property;t("switchWalls",(o=g("switchWalls"),u=y(c),o((f=e((h=function(t){function e(){for(var e,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return e=t.call.apply(t,[this].concat(n))||this,l(e,"Walls",f,r(e)),e.isOnToggle=!0,e}return i(e,t),e.prototype.wallSwitch=function(){this.isOnToggle&&(this.Walls.active=!this.Walls.active)},e}(a)).prototype,"Walls",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=h))||p));n._RF.pop()}}}));
System.register("chunks:///_virtual/ToggleManage.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var o,t,i,r,n,l,s,a,c,g;return{setters:[function(e){o=e.applyDecoratedDescriptor,t=e.inheritsLoose,i=e.initializerDefineProperty,r=e.assertThisInitialized},function(e){n=e.cclegacy,l=e._decorator,s=e.Node,a=e.Sprite,c=e.Color,g=e.Component}],execute:function(){var u,p,h,f,T,b,y,B,d;n._RF.push({},"25c6avRXM5AKrkSp8VWFb2Y","ToggleManage",void 0);var m=l.ccclass,v=l.property;e("ToggleManage",(u=m("ToggleManage"),p=v(s),h=v(a),f=v(c),u((y=o((b=function(e){function o(){for(var o,t=arguments.length,n=new Array(t),l=0;l<t;l++)n[l]=arguments[l];return o=e.call.apply(e,[this].concat(n))||this,i(o,"nodeThump",y,r(o)),i(o,"spriteBg",B,r(o)),i(o,"colorBg",d,r(o)),o.isOnToggle=!1,o}t(o,e);var n=o.prototype;return n.start=function(){this.spriteBg.color=this.colorBg[0]},n.setToggle=function(){this.isOnToggle?(this.isOnToggle=!1,this.spriteBg.color=this.colorBg[0]):(this.isOnToggle=!0,this.spriteBg.color=this.colorBg[1]),this.nodeThump.setPosition(0-this.nodeThump.position.x,0,0)},o}(g)).prototype,"nodeThump",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=o(b.prototype,"spriteBg",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=o(b.prototype,"colorBg",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),T=b))||T));n._RF.pop()}}}));
System.register("chunks:///_virtual/VirtualList.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ItemButton.ts","./EquipmentManager.ts"],(function(t){var e,n,i,o,a,r,s,c,l,u,h,d,p,f,_,m;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.inheritsLoose,i=t.initializerDefineProperty,o=t.assertThisInitialized,a=t.asyncToGenerator,r=t.regeneratorRuntime,s=t.extends},function(t){c=t.cclegacy,l=t._decorator,u=t.Prefab,h=t.ScrollView,d=t.UITransform,p=t.instantiate,f=t.Component},function(t){_=t.ItemButton},function(t){m=t.EquipmentManager}],execute:function(){var g,C,w,v,b,y,I,L;c._RF.push({},"e8aeeDTB95N27vY5YNwlCRI","VirtualList",void 0);var U=l.ccclass,V=l.property;t("LazyLoadList",(g=U("LazyLoadList"),C=V(u),w=V(h),g((y=e((b=function(t){function e(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a))||this,i(e,"itemPrefab",y,o(e)),i(e,"scrollView",I,o(e)),i(e,"spacing",L,o(e)),e._data=[],e._totalCount=0,e._loadedCount=0,e._itemHeight=0,e._content=null,e._contentUI=null,e}n(e,t);var c=e.prototype;return c.onLoad=function(){if(this.scrollView.content)if(this._content=this.scrollView.content,this._contentUI=this._content.getComponent(d),this._contentUI){var t=p(this.itemPrefab),e=t.getComponent(d);if(!e)return console.error("В префабе отсутствует компонент UITransform!"),void t.destroy();this._itemHeight=e.height,t.destroy(),this.waitForEquipmentManager()}else console.error("Узел content не имеет компонента UITransform!");else console.error("ScrollView.content равен null!")},c.waitForEquipmentManager=function(){var t=this;if(!m.instance)return console.warn("EquipmentManager.instance не найден, повторная попытка..."),void this.scheduleOnce((function(){t.waitForEquipmentManager()}),.1);m.instance.node.on("data-updated",this.onDataUpdated,this),this.onDataUpdated()},c.onDataUpdated=function(){var t=a(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m.instance){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,m.instance.getDataList();case 4:this._data=t.sent.map((function(t){return s({},t)})),this._totalCount=this._data.length,this._loadedCount=0,this._content.removeAllChildren(),this.loadNextBatch(20);case 9:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),c.loadNextBatch=function(t){if(!(this._loadedCount>=this._totalCount)){for(var e=this._loadedCount,n=Math.min(this._loadedCount+t,this._totalCount),i=e;i<n;i++){var o=p(this.itemPrefab),a=-(this._itemHeight*(.5+i)+this.spacing*(i+1));o.setPosition(0,a,0),this._content.addChild(o);var r=o.getComponent(_);r&&(r.initialize(this._data[i]),r.itemIndex=i)}this._loadedCount=n,this._contentUI.height=this._loadedCount*(this._itemHeight+this.spacing)+this.spacing}},c.update=function(t){if(this.scrollView.content){var e=this.scrollView.node.getComponent(d).height;Math.abs(this.scrollView.content.position.y)>=this._contentUI.height-e-50&&this._loadedCount<this._totalCount&&this.loadNextBatch(20)}},e}(f)).prototype,"itemPrefab",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=e(b.prototype,"scrollView",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(b.prototype,"spacing",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),v=b))||v));c._RF.pop()}}}));
System.register("chunks:///_virtual/WallTextSwitch.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,e,l,n,r,a,o,s;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.inheritsLoose,l=t.initializerDefineProperty,n=t.assertThisInitialized},function(t){r=t.cclegacy,a=t._decorator,o=t.Label,s=t.Component}],execute:function(){var c,u,h,p,g;r._RF.push({},"bae91xJwvJDa5PQthCiFX8w","WallTextSwitch",void 0);var f=a.ccclass,b=a.property;t("WallTextSwitch",(c=f("WallTextSwitch"),u=b(o),c((g=i((p=function(t){function i(){for(var i,e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i=t.call.apply(t,[this].concat(r))||this,l(i,"WallLb",g,n(i)),i.isOnToggle=!1,i}e(i,t);var r=i.prototype;return r.start=function(){this.WallLb.string="Стены включены"},r.wallSwitch=function(){this.isOnToggle?(this.isOnToggle=!1,this.WallLb.string="Стены включены"):(this.isOnToggle=!0,this.WallLb.string="Стены выключены")},i}(s)).prototype,"WallLb",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=p))||h));r._RF.pop()}}}));
(function(r) {
r('virtual:///prerequisite-imports/main', 'chunks:///_virtual/main');
})(function(mid, cid) {
System.register(mid, [cid], function (_export, _context) {
return {
setters: [function(_m) {
var _exportObj = {};
for (var _key in _m) {
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
}
_export(_exportObj);
}],
execute: function () { }
};
});
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 547 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Some files were not shown because too many files have changed in this diff Show More