22 lines
454 B
C++
22 lines
454 B
C++
#pragma once
|
|
|
|
#include <td/game/World.h>
|
|
#include <td/protocol/command/Commands.h>
|
|
|
|
namespace td {
|
|
namespace sim {
|
|
|
|
class CommandApply : public protocol::CommandHandler {
|
|
private:
|
|
const game::World& m_World;
|
|
WorldSnapshot& m_Snapshot;
|
|
|
|
public:
|
|
CommandApply(const game::World& a_World, WorldSnapshot& a_Snapshot);
|
|
|
|
virtual void Handle(const protocol::commands::SpawnTroopCommand& a_SpawnTroop) override;
|
|
};
|
|
|
|
} // namespace sim
|
|
} // namespace td
|