Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-10 19:31:42 +0000
committerStijn Buys <ingar@osirion.org>2011-07-10 19:31:42 +0000
commite18fa1d8ad9208a9f5bcfe2d97d36ae3675c80f1 (patch)
tree427f60f1bd7a4718cc5c96d79d40e9c4c650d5bc /src/core/player.h
parentaf5404ea593d460d3ae843a23b295e3cfeade5bc (diff)
Generate a player ID when connecting to a server,
read it from keys.ini if it was previously generated.
Diffstat (limited to 'src/core/player.h')
-rw-r--r--src/core/player.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/player.h b/src/core/player.h
index afd1bc9..117de56 100644
--- a/src/core/player.h
+++ b/src/core/player.h
@@ -14,6 +14,7 @@ class Player;
#include "core/entity.h"
#include "core/message.h"
+#include "core/uid.h"
#include "core/zone.h"
#include "core/netclient.h"
#include "math/mathlib.h"
@@ -126,7 +127,7 @@ public:
}
/// player global unique id
- const std::string & guid() const {
+ UID & guid() {
return player_guid;
}
@@ -273,7 +274,7 @@ private:
int player_admin_level;
// global unique id
- std::string player_guid;
+ UID player_guid;
// dirty bit
bool player_dirty;