added and edited cargo ship, extractor and refinery models

This commit is contained in:
devZoGok
2024-01-24 14:54:34 +02:00
parent 894e711633
commit b868cea8a1
33 changed files with 64284 additions and 62139 deletions
+2 -1
View File
@@ -191,7 +191,8 @@ namespace battleship{
Quaternion rot = Quaternion(unitTable[rotInd]["w"], unitTable[rotInd]["x"], unitTable[rotInd]["x"], unitTable[rotInd]["x"]);
int id = unitTable["id"];
player->addUnit(GameObjectFactory::createUnit(player, id, pos, rot));
int buildStatus = unitTable["buildStatus"].get_or(0);
player->addUnit(GameObjectFactory::createUnit(player, id, pos, rot, buildStatus));
}
}
}