22 lines
652 B
C++
22 lines
652 B
C++
#include <iostream>
|
|
// #include <td/protocol/packet/PacketVisitor.h>
|
|
#include <td/protocol/command/CommandDispatcher.h>
|
|
#include <td/protocol/command/CommandFactory.h>
|
|
#include <td/protocol/command/CommandSerializer.h>
|
|
#include <td/protocol/command/CommandVisitor.h>
|
|
#include <td/game/GameHistory.h>
|
|
|
|
class Test : public td::protocol::CommandVisitor {};
|
|
|
|
int main(int argc, char** argv) {
|
|
// Test visitor;
|
|
// td::protocol::packets::ChatMessage chat{{"coucou"}};
|
|
// visitor.Check(chat);
|
|
|
|
|
|
td::protocol::commands::UpgradeTower com{{1, 2}};
|
|
std::cout << (unsigned)com.GetType() << std::endl;
|
|
td::protocol::CommandDispatcher disptacher;
|
|
return 0;
|
|
}
|