diff options
author | Stijn Buys <ingar@osirion.org> | 2011-07-11 19:33:27 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-07-11 19:33:27 +0000 |
commit | 83c9d657773fa4f829b533791697ed07e0d9d962 (patch) | |
tree | 0c53d6a6d71c14894ac51124933ae31b66164217 /src/core/module.h | |
parent | 99bd770a6030805ecd2cb22671e8f29d32fd59db (diff) |
Initial support for saving player data in multiplayer games,
have ships remember their docks and spawns.
Diffstat (limited to 'src/core/module.h')
-rw-r--r-- | src/core/module.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/module.h b/src/core/module.h index ac6b380..51b1824 100644 --- a/src/core/module.h +++ b/src/core/module.h @@ -56,6 +56,12 @@ public: /// is called when a player disconnects virtual void player_disconnect(Player *player) = 0; + + /// is called when player data needs to be saved + virtual void player_save(Player *player); + + /// is called when player data needs to be loaded + virtual void player_load(Player *player); /// set the module label void set_label(const std::string &label); |