Files
inventory-system-plugin/Source/ItemWorld/Private/StorageContainerActor.cpp
Bonchellon 7f7e043a88 Initial commit: Item Interaction Ecosystem plugin (UE5.7)
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>
2026-06-22 20:49:56 +03:00

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;
}