-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59658a8
commit 3b71b1d
Showing
2 changed files
with
148 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#ifndef __STATSWRITER_H__ | ||
#define __STATSWRITER_H__ | ||
|
||
#include "game.h" | ||
|
||
namespace remod | ||
{ | ||
namespace statswriter | ||
{ | ||
struct playerinfo | ||
{ | ||
const char *name; | ||
const char *authname; | ||
unsigned int connect_seconds; | ||
const char *team; | ||
int privilege; | ||
int frags, flags, deaths, teamkills, shotdamage, damage; | ||
float effectiveness; | ||
int suicides; | ||
struct | ||
{ | ||
int shotdamage; | ||
int damage; | ||
} guninfo[NUMGUNS]; | ||
}; | ||
struct teaminfo | ||
{ | ||
const char *team; | ||
int score; | ||
}; | ||
struct gameinfo | ||
{ | ||
int mode; | ||
const char *mapname; | ||
}; | ||
struct stats | ||
{ | ||
vector<playerinfo> players; | ||
vector<teaminfo> teams; | ||
struct gameinfo game; | ||
}; | ||
} // namespace statswriter | ||
} // namespace remod | ||
#endif |