]> git.localhorst.tv Git - blank.git/blobdiff - tst/net/PacketTest.hpp
transmit player input from client to server
[blank.git] / tst / net / PacketTest.hpp
index 119c696de39b79159b525bb82ef5000336c7d70b..89e15dd526e35982ec69d6630c924cdc3a603e5c 100644 (file)
@@ -6,6 +6,7 @@
 #include "world/EntityState.hpp"
 
 #include <cstdint>
+#include <limits>
 #include <string>
 #include <SDL_net.h>
 #include <glm/glm.hpp>
@@ -80,7 +81,8 @@ private:
        static void AssertEqual(
                const std::string &message,
                const glm::vec3 &expected,
-               const glm::vec3 &actual);
+               const glm::vec3 &actual,
+               float epsilon = std::numeric_limits<float>::epsilon());
        static void AssertEqual(
                const std::string &message,
                const glm::quat &expected,