We need a game log for a game so it can be used for stats and later for debug.
Log should be implemented in the BaseGame like:
this.addGameLog(type,payload);
The type is a string like: shoot, reload, start, gothit etc.
The payload is optional and can be something like when got hit: {'player': 1, 'team': 'green', 'strength' : 75}
We need a game log for a game so it can be used for stats and later for debug.
Log should be implemented in the BaseGame like:
this.addGameLog(type,payload);
The type is a string like: shoot, reload, start, gothit etc. The payload is optional and can be something like when got hit: {'player': 1, 'team': 'green', 'strength' : 75}
The logs itself are stored with a timestamp.