#include "ShieldGeneratorItem.h" #include "CapacityHoldingItemAggregator.h" #include "Net/UnrealNetwork.h" void AShieldGeneratorItem::OnRep_UnchargedCount(int32 OldCount) { } bool AShieldGeneratorItem::GetIsRecharging() const { return false; } void AShieldGeneratorItem::GeneratorReturned() { } void AShieldGeneratorItem::GetLifetimeReplicatedProps(TArray& OutLifetimeProps) const { Super::GetLifetimeReplicatedProps(OutLifetimeProps); DOREPLIFETIME(AShieldGeneratorItem, UnchargedCount); } AShieldGeneratorItem::AShieldGeneratorItem() { this->ChargeCapacity = CreateDefaultSubobject(TEXT("ChargeCapacity")); this->CarryCapacity = CreateDefaultSubobject(TEXT("Capacity")); this->RechargeDuration = 2.00f; this->UnchargedCount = 0; this->RechargeProgress = 0.00f; this->SupplyStatusWeight = 1.00f; this->ShoutRecarged = NULL; }