#pragma once #include #include #include #include namespace NetworkingObjects { struct NetObjID { std::array data; template void serialize(Archive& a) { a(data[1], data[0]); } NetObjID& operator=(const NetObjID&) = default; bool operator==(const NetObjID&) const = default; static NetObjID random_gen(); }; }; template <> struct std::hash { size_t operator()(const NetworkingObjects::NetObjID& v) const { uint64_t h = 0; hash_combine(h, v.data[1], v.data[0]); return h; } };