This repository has been archived on 2019-06-21. You can view files and clone it, but cannot push or open issues or pull requests.
2017-02-26 20:30:51 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace PixelHub.Server.PixelCommands
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Hard-resets the PixelBot. Useful if something has gone wrong, or to reset it's internal state.
|
|
|
|
|
/// Note that this will cause the PixelBot to drop it's connection!
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ResetCommand : PixelCommand
|
|
|
|
|
{
|
|
|
|
|
public override byte[] Payload {
|
|
|
|
|
get {
|
|
|
|
|
return new byte[0];
|
|
|
|
|
}
|
|
|
|
|
protected set {
|
|
|
|
|
// There's nothing here!
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-02 13:19:29 +00:00
|
|
|
|
public new MessageTypes MessageType { get; private set; } = MessageTypes.Reset;
|
|
|
|
|
|
2017-02-26 20:30:51 +00:00
|
|
|
|
public ResetCommand()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|