In my inventory system, I wish to add an ActorComponent called inventory_component onto every actor that can have inventory items. This component replicates, and has replicated properties, although doesn’t have much functionality.
Is this approach good?
Or, since I wish to use replicated properties, could I just add replicated properties directory on the actors in the level?
But for inventory, an interface might be enough. For an item, you only need the ItemID, and for storage, you need a Map <ItemID, Int>.
But if you wanted to dynamically add items the ability to work with the inventory system, or if you add additional functionality to items, then components would be preferable.