Ejemplo n.º 1
0
 /// <summary>
 /// Process when a player sends a comment.
 /// </summary>
 /// <param name="player">The player doing the action.</param>
 /// <param name="world">A reference to the gameworld.</param>
 private void ProcessComment(Player player, GameWorld world)
 {
     string comment = netmsg.GetStringZ();
     FileHandler fileHandler = new FileHandler();
     lock (lockStatic) {
         fileHandler.SaveComment(comment, player);
     }
     player.ResetNetMessages();
     player.AddAnonymousChat(ChatAnonymous.WHITE,
         "Your comment has been submitted");
     player.WriteToSocket();
 }