Completely removed MainServer code. All server code is now part of the program

This commit is contained in:
Yousef Khadadeh 2025-12-17 14:46:27 +03:00
parent 0b67c9cc46
commit 26d807ce87
31 changed files with 459 additions and 512 deletions

View file

@ -10,26 +10,7 @@ using namespace Eigen;
typedef Vector<WorldScalar, 2> WorldVec;
enum DrawComponentType : uint8_t {
DRAWCOMPONENT_BRUSHSTROKE = 0,
DRAWCOMPONENT_RECTANGLE,
DRAWCOMPONENT_ELLIPSE,
DRAWCOMPONENT_TEXTBOX,
DRAWCOMPONENT_IMAGE
};
typedef uint64_t ClientPortionID;
typedef uint64_t ServerPortionID;
typedef std::pair<ServerPortionID, ClientPortionID> ServerClientID;
template <> struct std::hash<ServerClientID> {
size_t operator()(const ServerClientID& v) const
{
uint64_t h = 0;
hash_combine(h, v.first, v.second);
return h;
}
};
typedef uint64_t NetClientID;
template <typename F, typename S> std::ostream& operator<<(std::ostream& os, const std::pair<F, S>& p) {
os << p.first << ", " << p.second;