File size: 1,020 Bytes
5463b45
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
registerPlugin({name:"micropark-verifier",version:"1.0",authors:["Verifier"],type:"local",licence:"MIT",targetApiVersion:77,main:function(){
var s=context.getParkStorage("micropark-v1");
console.log("T37JSON "+JSON.stringify({kind:"load",
 origin:s.get("origin",null),outcome:s.get("outcome",null),peakParkValue:s.get("peakValue",null),
 scenarioStatus:scenario.status,objectiveType:scenario.objective.type,objectiveYear:scenario.objective.year,
 objectiveTarget:scenario.objective.parkValue,completedCompanyValue:scenario.completedCompanyValue,
 parkValue:park.value,companyValue:park.companyValue,cash:park.cash,loan:park.bankLoan,
 rating:park.rating,guests:park.guests,parkOpen:park.getFlag("open"),
 monthsElapsed:date.monthsElapsed,day:date.day,month:date.month,year:date.year,
 rides:map.rides.map(function(r){return {id:r.id,name:r.name,classification:r.classification,status:r.status,breakdown:r.breakdown,totalCustomers:r.totalCustomers,value:r.value,excitement:r.excitement,intensity:r.intensity};})}));
}});