rem:  localPlayer.resource = new Object(); localPlayer.resource.food = 0; localPlayer.resource.wood = 0; localPlayer.resource.stone = 0; localPlayer.resource.ore = 0; localPlayer.resource.pop = new Object(); localPlayer.resource.pop.curr = 0; localPlayer.resource.pop.housing = 0; 
add: CreateResources(); 
context: function setupSession(){        // Do essentials that can only be done when the session has been loaded ...        // For example, create the resource types.        // Initialise Resource Pools by attaching them to the Player object.        // (CPlayer code takes care of giving a copy to each player.)//        player = new Object(); // I shouldn't need to do this. Need to find the existing Player to add these to.        localPlayer.resource = new Object();        localPlayer.resource.food = 0;        localPlayer.resource.wood = 0;        localPlayer.resource.stone = 0;        localPlayer.resource.ore = 0;        localPlayer.resource.pop = new Object();        localPlayer.resource.pop.curr = 0;        localPlayer.resource.pop.housing = 0;        // Start refreshing the session controls.        setInterval( getObjectInfo, 1, 1000 );}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/9d2dde62aeac2cf2ee28c69545cb52ec2d585e13/functions_pregame_load.js/clean/binaries/data/mods/official/gui/test/functions_pregame_load.js