mirror of
https://github.com/quasar/Quasar.git
synced 2026-10-26 02:19:49 +08:00
38 lines
840 B
C#
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);
|
|
}
|
|
}
|
|
} |