Console.log... Automatic coding?

Game development with Board Game Arena Studio
Post Reply
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

Console.log... Automatic coding?

Post by Rudolf »

Hello,
I wonder if we can easely automize coding in log:
I mean, instead of repeating function name

Code: Select all

notif_PeacePipePlayed: function (notif)
						{
							console.log( 'notif_PeacePipePlayed' );
						      	console.log( notif );
							this.SlidePeacePipeFromPlayerBoard(notif.args.player_id,notif.args.node,notif.args.index);
						},
using something like:
console.log( thisfunction.name ) ???
I did not find something simple, is there any solution?
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: Console.log... Automatic coding?

Post by sourisdudesert »

Hello Rudolf,

Well, this is true. Indeed, this is already done by:

"Dispatching a notification, type = XXXXXXX"

And by the logging of the notification in the log section beside the game arena.

Cheers,
Post Reply

Return to “Developers”