Example #1
0
 /// <summary>
 /// Packet Type: 1010. This packet encapsulates a general action to be performed by the server or by the
 /// client. The action is performed by an actor of the screen or sends a general action to an observer.
 /// It can also be used to control actions in the client interface.
 /// </summary>
 /// <param name="identity">The identity of the actor.</param>
 /// <param name="left">The left data being sent through the packet.</param>
 /// <param name="right">The right data being sent through the packet.</param>
 /// <param name="action">The type of action being performed.</param>
 public MsgAction(uint identity, ushort left, ushort right, GeneralActionType action)
     : base(PacketType.MSG_ACTION, 44, 36)
 {
     TimeStamp = Time.Now;
     Identity  = identity;
     LeftData  = left;
     RightData = right;
     Action    = action;
 }
Example #2
0
 /// <summary>
 /// Packet Type: 1010. This packet encapsulates a general action to be performed by the server or by the
 /// client. The action is performed by an actor of the screen or sends a general action to an observer.
 /// It can also be used to control actions in the client interface.
 /// </summary>
 /// <param name="identity">The identity of the actor.</param>=
 /// <param name="data">The data being sent through the action.</param>
 /// <param name="x">The x-coordinate of the character.</param>
 /// <param name="y">The y-coordinate of the character.</param>
 /// <param name="action">The type of action being performed.</param>
 public MsgAction(uint identity, uint data, ushort x, ushort y, GeneralActionType action)
     : base(PacketType.MSG_ACTION, 44, 36)
 {
     TimeStamp = Time.Now;
     Identity  = identity;
     Data      = data;
     X         = x;
     Y         = y;
     Action    = action;
 }