This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
17 lines
424 B
C++
17 lines
424 B
C++
#pragma once
|
|
|
|
#include "Command.h"
|
|
|
|
class TimeCommand : public Command
|
|
{
|
|
public:
|
|
virtual EGameCommand getId();
|
|
virtual void execute(std::shared_ptr<CommandSender> source, byteArray commandData);
|
|
|
|
protected:
|
|
void doSetTime(std::shared_ptr<CommandSender> source, int value);
|
|
void doAddTime(std::shared_ptr<CommandSender> source, int value);
|
|
|
|
public:
|
|
static std::shared_ptr<GameCommandPacket> preparePacket(bool night);
|
|
}; |