Files
Quasar/Server/Core/Packets/ServerPackets/DoMouseEvent.cs
T
MaxXor 23cafeb2f3 Switched from ProtoBuff to NetSerializer
NetSerializer should be slightly faster than Protocol Buffers
2015-08-08 16:21:09 +02:00

38 lines
840 B
C#

using System;
using xServer.Core.Networking;
using xServer.Enums;
namespace xServer.Core.Packets.ServerPackets
{
[Serializable]
public class DoMouseEvent : IPacket
{
public MouseAction Action { get; set; }
public bool IsMouseDown { get; set; }
public int X { get; set; }
public int Y { get; set; }
public int MonitorIndex { get; set; }
public DoMouseEvent()
{
}
public DoMouseEvent(MouseAction action, bool isMouseDown, int x, int y, int monitorIndex)
{
this.Action = action;
this.IsMouseDown = isMouseDown;
this.X = x;
this.Y = y;
this.MonitorIndex = monitorIndex;
}
public void Execute(Client client)
{
client.Send(this);
}
}
}