Completely removed MainServer code. All server code is now part of the program
This commit is contained in:
parent
0b67c9cc46
commit
26d807ce87
31 changed files with 459 additions and 512 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue