]> git.localhorst.tv Git - blank.git/blobdiff - tst/net/PacketTest.cpp
composite model is the canonical model
[blank.git] / tst / net / PacketTest.cpp
index 751421b2f9bcb351090c34776ea4c777adbceec9..464c9d6ba6de912de87b511e3b627a58d006d257 100644 (file)
@@ -1,6 +1,6 @@
 #include "PacketTest.hpp"
 
-#include "model/CompositeModel.hpp"
+#include "model/Model.hpp"
 #include "world/Entity.hpp"
 
 CPPUNIT_TEST_SUITE_REGISTRATION(blank::test::PacketTest);
@@ -45,8 +45,7 @@ void PacketTest::testSizes() {
 }
 
 void PacketTest::testControl() {
-       Packet::TControl ctrl;
-       ctrl.ack = 10;
+       Packet::TControl ctrl{ 0, 10, 0 };
 
        CPPUNIT_ASSERT_MESSAGE(
                "TControl should ack the packet in the ack field",
@@ -230,7 +229,7 @@ void PacketTest::testSpawnEntity() {
 
        Entity write_entity;
        write_entity.ID(534574);
-       CompositeModel model;
+       Model model;
        model.ID(23);
        model.Instantiate(write_entity.GetModel());
        write_entity.GetState().chunk_pos = { 7, 2, -3 };