Creating classes and having an array of those classes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ItsAccel

I’m trying to re-create my inventory system from unity inside of Godot but I can’t figure out how to create a class thats only data just like in any programming language "ItemStack itemStack = new ItemStack(Init); and then having an Inventory class that holds an array of ItemStacks? so then the player can hold an object/class of Inventory, or is the way godot works not possible to do this? and if not how would you go about doing that? I’ll show a quick little youtube video of what my unity inventory looks like

:bust_in_silhouette: Reply From: kidscancode

The GDScript docs have you covered:

var ItemStack = load("res://path/to/")
var item_instance =