Exemplo n.º 1
0
        /// <summary>
        /// Updates the client with an unsigned value.
        /// </summary>
        /// <param name="updateType">The update type.</param>
        /// <param name="value">The value.</param>
        public void UpdateClient(Enums.UpdateClientType updateType, ulong value)
        {
            if (!Player.LoggedIn)
            {
                return;
            }

            Player.ClientSocket.Send(new Models.Packets.Client.UpdateClientPacket
            {
                ClientId   = Player.ClientId,
                UpdateType = updateType,
                Value      = value
            });
        }
Exemplo n.º 2
0
 /// <summary>
 /// Updates the client with a signed value.
 /// </summary>
 /// <param name="updateType">The update type.</param>
 /// <param name="value">The value.</param>
 public void UpdateClient(Enums.UpdateClientType updateType, long value)
 {
     UpdateClient(updateType, (ulong)value);
 }