private void UpdateMapUser(TransportHandler transportHandler, UpdateUserCharacterMessage.UpdateType updateType, UserCharacterData userData)
        {
            var updateMapUserMessage = new UpdateUserCharacterMessage();

            updateMapUserMessage.type = updateType;
            updateMapUserMessage.data = userData;
            transportHandler.ClientSendPacket(SendOptions.ReliableOrdered, MMOMessageTypes.UpdateMapUser, updateMapUserMessage.Serialize);
        }
 private static void Send(TransportHandler transportHandler, long?connectionId, ushort msgType, INetSerializable message)
 {
     if (!connectionId.HasValue)
     {
         transportHandler.ClientSendPacket(SendOptions.ReliableOrdered, msgType, message.Serialize);
     }
     else
     {
         transportHandler.ServerSendPacket(connectionId.Value, SendOptions.ReliableOrdered, msgType, message.Serialize);
     }
 }