Server-authoritative, data-driven item/inventory/interaction/carry/equipment/ world-slot/placement/crafting framework. 8 modules, compiles against UE 5.7. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
22 lines
693 B
C++
22 lines
693 B
C++
// Copyright ExByte Studios. Item Interaction Ecosystem.
|
|
|
|
#include "StorageContainerActor.h"
|
|
#include "InteractableComponent.h"
|
|
#include "InventoryComponent.h"
|
|
#include "Components/StaticMeshComponent.h"
|
|
|
|
AStorageContainerActor::AStorageContainerActor()
|
|
{
|
|
bReplicates = true;
|
|
PrimaryActorTick.bCanEverTick = false;
|
|
|
|
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Mesh"));
|
|
SetRootComponent(Mesh);
|
|
|
|
Interactable = CreateDefaultSubobject<UInteractableComponent>(TEXT("Interactable"));
|
|
|
|
Storage = CreateDefaultSubobject<UInventoryComponent>(TEXT("Storage"));
|
|
// Shared container: visible to whoever opens it, not just an owning client.
|
|
Storage->bOwnerOnlyReplication = false;
|
|
}
|