注释
This commit is contained in:
parent
12dab4eea4
commit
d6cd6c1e3e
@ -12,8 +12,8 @@ export function RailListN(){
|
|||||||
};
|
};
|
||||||
// this.init = function(section,linklist,scene){
|
// this.init = function(section,linklist,scene){
|
||||||
this.init = function(section,sectionList,switchdata,scene){
|
this.init = function(section,sectionList,switchdata,scene){
|
||||||
console.log(section);
|
// console.log(section);
|
||||||
console.log(switchdata);
|
// console.log(switchdata);
|
||||||
for(let i=0;i<section.length;i++){
|
for(let i=0;i<section.length;i++){
|
||||||
scope.sectionrail[section[i].code] = {
|
scope.sectionrail[section[i].code] = {
|
||||||
lp:section[i].lp,
|
lp:section[i].lp,
|
||||||
|
@ -18,7 +18,7 @@ export function SectionListN() {
|
|||||||
this.standtrack = [];
|
this.standtrack = [];
|
||||||
var autorail;
|
var autorail;
|
||||||
this.loadpromise = function(sectionList,sectiondata,scene,assetloader){
|
this.loadpromise = function(sectionList,sectiondata,scene,assetloader){
|
||||||
console.log(sectiondata);
|
// console.log(sectiondata);
|
||||||
for(let i=0;i<assetloader.modellist.length;i++){
|
for(let i=0;i<assetloader.modellist.length;i++){
|
||||||
if(assetloader.modellist[i].deviceType == "autorail"){
|
if(assetloader.modellist[i].deviceType == "autorail"){
|
||||||
autorail = assetloader.modellist[i].mesh.children[0];
|
autorail = assetloader.modellist[i].mesh.children[0];
|
||||||
@ -39,7 +39,7 @@ this.loadpromise = function(sectionList,sectiondata,scene,assetloader){
|
|||||||
autorail.leftlist = leftlist;
|
autorail.leftlist = leftlist;
|
||||||
scene.add(scope.sectiongroup);
|
scene.add(scope.sectiongroup);
|
||||||
return new Promise(function(resolve, reject){
|
return new Promise(function(resolve, reject){
|
||||||
console.log(sectiondata);
|
// console.log(sectiondata);
|
||||||
for(let i=0,leni = sectiondata.length;i<leni;i++){
|
for(let i=0,leni = sectiondata.length;i<leni;i++){
|
||||||
let newsection = {
|
let newsection = {
|
||||||
code:sectiondata[i].code,
|
code:sectiondata[i].code,
|
||||||
|
Loading…
Reference in New Issue
Block a user