first commit
This commit is contained in:
21
src/main.cpp
Normal file
21
src/main.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <iostream>
|
||||
// #include <sp/protocol/packet/PacketVisitor.h>
|
||||
#include <sp/game/GameHistory.h>
|
||||
#include <sp/protocol/command/CommandDispatcher.h>
|
||||
#include <sp/protocol/command/CommandFactory.h>
|
||||
#include <sp/protocol/command/CommandSerializer.h>
|
||||
#include <sp/protocol/command/CommandVisitor.h>
|
||||
|
||||
class Test : public sp::protocol::CommandVisitor {};
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
// Test visitor;
|
||||
// sp::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;
|
||||
}
|
||||
Reference in New Issue
Block a user