Beispiel #1
0
        /// <summary>
        /// Will fire up after client entered his name and pressed "Registration"
        /// </summary>
        /// <param name="name">Name as payload from client</param>
        public Guid InitPlayer(string name)
        {
            Guid addedPlayerGuid = _playerPool.AddPlayerToPool(Context.ConnectionId, name);

            Log.Information("New player '{0}' guid '{1}' added to player pool", name, addedPlayerGuid);

            return(addedPlayerGuid);
        }