Added new auto switches logging

+Added an option in the Constants to log new automatically resolved switch definitions
This commit is contained in:
izawartka 2025-06-08 23:01:20 +02:00
parent 606f4a3a5f
commit 0aafbe6960
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,8 @@ const Constants = {
trackSlopeScale: 10,
},
parser: {
forceAutoSwitches: false
forceAutoSwitches: false,
logNewAutoSwitches: true
},
warnings: {
all: false, // enable all warnings

View File

@ -164,7 +164,7 @@ export default class Switch extends SceneryObject {
];
if(!DefinedSwitches[this.bare_model]) DefinedSwitches[this.bare_model] = newDef;
// console.log(newDef);
if(Constants.parser.logNewAutoSwitches) console.log(this.bare_model, newDef);
return newDef;
}