1
0
Fork 0
webxoss-fixed/debug.js
2016-10-23 13:56:45 +08:00

40 lines
No EOL
1.2 KiB
JavaScript

console.log('------debug start------');
function reload (filePath) {
var path = require('path');
delete require.cache[path.resolve(filePath)];
require(filePath);
}
reload('./CardInfo.js');
// reload('./Card.js');
// reload('./Mask.js');
// reload('./ConstEffect.js');
// reload('./ConstEffectManager.js');
// reload('./Player.js');
// reload('./Client.js');
// var test = require('./test.js');
// var roomManager = test.roomManager;
// console.log(JSON.stringify(roomManager.gameCountMap),null,'\t');
// console.log(roomManager.gameCountMap);
// var room = roomManager.roomMap['【周年祭】F组'];
// if (!room) {
// console.log('no room');
// return;
// }
// console.log('seed:'+room.game.seed);
// console.log('seed:'+room.guest.id);
// var fs = require('fs');
// fs.writeFile('host.txt',JSON.stringify(room.game.hostPlayer.messagePacks),function (err) {
// console.log(err? 'host error' : 'host succ');
// });
// fs.writeFile('guest2.txt',JSON.stringify(room.game.guestPlayer.messagePacks),function (err) {
// console.log(err? 'guest error' : 'guest succ');
// });
// roomManager.rooms.forEach(function (room) {
// console.log(room.name + !!room.game + !!room.live);
// },this);
console.log('------debug end------');