Added pickup boxes
This commit is contained in:
1 parent
86a9f38c3b
commit
84a5e888a0
14 files changed
+300
-7
No files matched your search
@@ -42,6 +42,8 @@ namespace ZL {
|
||||
std::vector<ProjectileInfo> pendingProjectiles;
|
||||
std::vector<DeathInfo> pendingDeaths;
|
||||
std::vector<BoxDestroyedInfo> pendingBoxDestructions;
|
||||
std::vector<BoxPickedUpInfo> pendingBoxPickups;
|
||||
std::vector<BoxRespawnInfo> pendingBoxRespawns;
|
||||
std::vector<int> pendingRespawns;
|
||||
|
||||
uint64_t lastUpdateMs = 0;
|
||||
@@ -56,6 +58,7 @@ namespace ZL {
|
||||
void initializeNPCs();
|
||||
void updateNPCs();
|
||||
Eigen::Vector3f generateRandomPosition();
|
||||
Eigen::Vector3f generateRespawnBoxPos(int skipIdx);
|
||||
|
||||
public:
|
||||
void Connect(const std::string& host, uint16_t port) override;
|
||||
@@ -79,6 +82,8 @@ namespace ZL {
|
||||
}
|
||||
|
||||
std::vector<BoxDestroyedInfo> getPendingBoxDestructions() override;
|
||||
std::vector<BoxPickedUpInfo> getPendingBoxPickups() override;
|
||||
std::vector<BoxRespawnInfo> getPendingBoxRespawns() override;
|
||||
|
||||
void setLocalPlayerState(const ClientState& state) {
|
||||
localPlayerState = state;
|
||||
|
||||
Reference in new issue
Block a user