public override void ReadPacket(RemoteClient c) { Control = (ControlType)c.ReadShort(); Value = -1; switch (Control) { case ControlType.Play: ValueString = c.ReadString(); break; case ControlType.Rewind: case ControlType.Forward: Value = c.ReadInt(); break; } }
public override void ReadPacket(RemoteClient c) { Message = c.ReadString(); }