first commit

This commit is contained in:
2025-02-04 19:11:03 +01:00
commit cfeea10634
43 changed files with 2448 additions and 0 deletions

21
src/main.cpp Normal file
View 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;
}