--- /dev/null
+[
+ {
+ "id": "base_item",
+ "name": "Base Item",
+ "description": "An example item used as a base to create other items.",
+
+ "_comment": "Stack Based Inventory",
+ "stack_size": 10,
+ "weight": 1.0,
+
+ "_comment": "Grid Based Inventory",
+ "width": 2,
+ "height": 2,
+ }
+]
--- /dev/null
+[gd_resource type="Resource" script_class="ItemProtoset" load_steps=2 format=3 uid="uid://djhhxwo6oave4"]
+
+[ext_resource type="Script" path="res://addons/gloot/core/item_protoset.gd" id="1_gt6d6"]
+
+[resource]
+script = ExtResource("1_gt6d6")
+json_data = "[
+ {
+ \"id\": \"base_item\",
+ \"name\": \"Base Item\",
+ \"description\": \"An example item used as a base to create other items.\",
+
+ \"_comment\": \"Stack Based Inventory\",
+ \"stack_size\": 10,
+ \"weight\": 1.0,
+
+ \"_comment\": \"Grid Based Inventory\",
+ \"width\": 2,
+ \"height\": 2,
+ }
+]
+"
-[gd_scene load_steps=4 format=3 uid="uid://k76535tjepm3"]
+[gd_scene load_steps=6 format=3 uid="uid://k76535tjepm3"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_1webx"]
[ext_resource type="SpriteFrames" uid="uid://dum0mxk5oajvu" path="res://assets/animations/player_animation.tres" id="1_qf5ok"]
+[ext_resource type="Script" path="res://addons/gloot/core/inventory_stacked.gd" id="3_kcm8a"]
+[ext_resource type="Resource" uid="uid://djhhxwo6oave4" path="res://scenes/components/item_protoset.tres" id="4_oy0ny"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_geqid"]
radius = 6.0
sprite_frames = ExtResource("1_qf5ok")
animation = &"idle"
frame_progress = 0.577081
+
+[node name="InventoryStacked" type="Node" parent="."]
+script = ExtResource("3_kcm8a")
+item_protoset = ExtResource("4_oy0ny")