コード例 #1
0
 /// <summary>
 /// Teleports player to new position.
 /// </summary>
 /// <param name="character">Player to teleport</param>
 /// <param name="teleportedByAdmin">Indicates whether the teleport was issued by an admin or not</param>
 public void TeleportPlayer(Character character, bool teleportedByAdmin)
 {
     foreach (var p in GetAllPlayers(true))
     {
         _packetsHelper.SendCharacterTeleport(p.Client, character, teleportedByAdmin);
     }
 }
コード例 #2
0
 /// <summary>
 /// Teleports player to new position.
 /// </summary>
 public void TeleportPlayer(Character character)
 {
     foreach (var p in GetAllPlayers(true))
     {
         if (p != character)
         {
             _packetsHelper.SendCharacterTeleport(p.Client, character);
         }
     }
 }