mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-16 12:28:08 +00:00
remove unneeded tests
This commit is contained in:
@@ -96,7 +96,8 @@ PetComponent::PetComponent(Entity* parentEntity, uint32_t componentId) : Compone
|
||||
void PetComponent::Serialize(RakNet::BitStream& outBitStream, bool bIsInitialUpdate) {
|
||||
const bool tamed = m_Owner != LWOOBJID_EMPTY;
|
||||
|
||||
outBitStream.Write1(); // Always serialize as dirty for now
|
||||
constexpr bool isDirty = true;
|
||||
outBitStream.Write(isDirty); // Always serialize as dirty for now
|
||||
|
||||
outBitStream.Write(m_Flags);
|
||||
outBitStream.Write(tamed ? m_Interaction.ability : ePetAbilityType::Invalid); // Something with the overhead icon?
|
||||
|
@@ -13,11 +13,6 @@
|
||||
#include "CDClientManager.h"
|
||||
|
||||
#include <optional>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
// Forward declarations
|
||||
class PetTest;
|
||||
class PetComponentFlagTest;
|
||||
|
||||
/*
|
||||
* The current state of the pet AI
|
||||
@@ -364,16 +359,13 @@ public:
|
||||
void AddDrainImaginationTimer(Item* item, bool fromTaming = false);
|
||||
|
||||
private:
|
||||
// Needed so these can access flags
|
||||
friend class DamagingPets;
|
||||
friend class PetTest;
|
||||
FRIEND_TEST(PetTest, PetComponentFlagTest);
|
||||
// Needed so it can access flags
|
||||
friend class DamagingPets;
|
||||
|
||||
/**
|
||||
* Information for the minigame to be completed
|
||||
*/
|
||||
struct PuzzleData
|
||||
{
|
||||
struct PuzzleData {
|
||||
/**
|
||||
* The LOT of the object that is to be created
|
||||
*/
|
||||
|
Reference in New Issue
Block a user