[−][src]Type Definition weasel::player::PlayerId
type PlayerId = u64;
Type to uniquely identify players.
PlayerId may be used to authorize client's events. In such case you must make sure that
malicious clients can't easily fabricate the id of another player.
One way is to assign
a randomly generated PlayerId to each client. Another solution is to assign PlayerId in
the server itself when an new event is received from a secure socket.