rem: addResource ("Food", getGUIObjectByName ("pgSessionSetupResourceFoodCounter").caption); addResource ("Wood", getGUIObjectByName ("pgSessionSetupResourceWoodCounter").caption); addResource ("Stone", getGUIObjectByName ("pgSessionSetupResourceStoneCounter").caption); addResource ("Ore", getGUIObjectByName ("pgSessionSetupResourceOreCounter").caption); 
add: addResource ("Food", Number(getGUIObjectByName ("pgSessionSetupResourceFoodCounter").caption)); addResource ("Wood", Number(getGUIObjectByName ("pgSessionSetupResourceWoodCounter").caption)); addResource ("Stone", Number(getGUIObjectByName ("pgSessionSetupResourceStoneCounter").caption)); addResource ("Ore", Number(getGUIObjectByName ("pgSessionSetupResourceOreCounter").caption)); 
context: function createResources(){	// Defines all resource types for future use.	// Assigns the value of game setup resource values as starting values.	addResource ("Food", getGUIObjectByName ("pgSessionSetupResourceFoodCounter").caption);	addResource ("Wood", getGUIObjectByName ("pgSessionSetupResourceWoodCounter").caption);	addResource ("Stone", getGUIObjectByName ("pgSessionSetupResourceStoneCounter").caption);	addResource ("Ore", getGUIObjectByName ("pgSessionSetupResourceOreCounter").caption);	addResource ("Population", 0);	addResource ("Housing", 0);}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/37ae5043f4a3316e5389194ee69983d975169edc/functions_sim_player.js/clean/binaries/data/mods/official/gui/test/functions_sim_player.js