PopochiuInventoryItemData

Extends: Resource

Description

Property Descriptions

script_name

@export var script_name: String = ""

The identifier of the object used in scripts.

scene

@export var scene: String = ""

The path to the scene file to be used when adding the character to the game during runtime.

Method Descriptions

on_save

func on_save() -> Dictionary

Use this to store custom data when saving the game. The returned [Dictionary] must contain only JSON supported types: [bool], [int], [float], [String].

on_load

func on_load(data: Dictionary) -> void

Called when the game is loaded. [param data] will have the same structure you defined for the returned [Dictionary] by [method _on_save].