[{"data":1,"prerenderedAt":145},["ShallowReactive",2],{"navigation":3,"class-ref-GGItemType":75},[4,13,40,60],{"title":5,"_path":6,"children":7},"Getting Started","/getting-started",[8,10],{"title":9,"_path":6},"Introduction",{"title":11,"_path":12},"Installation","/getting-started/installation",{"title":14,"_path":15,"children":16},"Concepts","/concepts",[17,19,22,25,28,31,34,37],{"title":18,"_path":15},"Overview",{"title":20,"_path":21},"Inventory","/concepts/inventory",{"title":23,"_path":24},"Interactions","/concepts/interaction",{"title":26,"_path":27},"Permissions","/concepts/permissions",{"title":29,"_path":30},"Multiplayer","/concepts/multiplayer",{"title":32,"_path":33},"User Interface","/concepts/user-interface",{"title":35,"_path":36},"Game Integration","/concepts/game-integration",{"title":38,"_path":39},"Crafting","/concepts/crafting",{"title":41,"_path":42,"children":43},"Demos","/demos",[44,46,49,52,54,57],{"title":45,"_path":42},"Inventory Tour",{"title":47,"_path":48},"Inventory UI Playground","/demos/inventory_ui",{"title":50,"_path":51},"Inventory Game UI","/demos/inventory_game_ui",{"title":38,"_path":53},"/demos/crafting",{"title":55,"_path":56},"Multiplayer Lobby","/demos/mp_lobby",{"title":58,"_path":59},"Sequencer (prototype)","/demos/sequencer",{"title":61,"_path":62,"children":63},"Guide","/guide",[64,66,69,72],{"title":65,"_path":62},"Architecture Deep Dive",{"title":67,"_path":68},"Design Principles","/guide/design-principles",{"title":70,"_path":71},"Changelog v2.x","/guide/changelog-v2",{"title":73,"_path":74},"Changelog v1.x","/guide/changelog",{"_path":76,"_dir":77,"_draft":78,"_partial":78,"_locale":79,"_id":80,"navigation":78,"addon":77,"version":81,"brief_description":82,"description":83,"tutorials":79,"methods":84,"members":107,"signals":137,"constants":138,"inherits":139,"name":140,"title":140,"_source":141,"_file":142,"_stem":143,"_extension":144},"/reference/2.0/gg_inventory/ggitemtype","gg_inventory",false,"","content:40.reference:2.0:gg_inventory:GGItemType.xml","2.0","Represents a type of inventory item and defines shared item properties.","Item types describe the properties shared by all instances of a particular type of item. An instance of an item type is represented by the [GGItemData] class.  For example, the [member name] and [member image] that represent the item type.[br][br]Some item types may be [member stackable], up to a specific [member stack_size]. They may also have a [member weight].[br][br]This class should be extended by your game to describe additional properties you may need. For example:\n[codeblock]\nclass_name MyCustomItemType extends GGItemType\n\n# The item description that will be shown to players on the item detail screen\nvar description: String = \"\"\n\n# Determines whether this type of item can be equipped.\nvar equippable: bool = false\n[/codeblock]",[85,94,99,103],{"description":86,"name":87,"public":88,"returnType":89,"params":90},"Creates and returns a new instance of the item type. The [param properties] can be used to set any properties on the [GGItemData] instance. Example:\n[codeblock]\nmy_item_data = my_item_type.create_item({ quantity = 2 })\n[/codeblock]","create_item",true,"GGItemData",[91],{"name":92,"type":93},"properties","Dictionary",{"description":95,"name":96,"public":88,"returnType":97,"params":98},"Wether instances of this item can be stacked with other instances of the same type.","is_stackable","bool",[],{"description":100,"name":101,"public":78,"returnType":89,"params":102},"Override to determine which class is use to represent the [GGItemData]. Example:\n[codeblock]\nfunc _factory_class() -> GGItemData:\n    return MyCustomItemData.new()\n[/codeblock]","_factory_class",[],{"description":79,"name":104,"public":78,"returnType":105,"params":106},"_to_string","String",[],[108,113,117,120,123,128,133],{"name":109,"description":110,"type":111,"setter":79,"getter":79,"default":112,"public":88},"icon","Represents the item visually.[br][br]This is, for example, used by the [GGInventorySlotItemUI].","Texture2D","null",{"name":114,"description":115,"type":105,"setter":79,"getter":79,"default":116,"public":88},"name","The name of the item.","\"\"",{"name":118,"description":119,"type":105,"setter":79,"getter":79,"default":116,"public":88},"description","The description of the item.",{"name":121,"description":95,"type":97,"setter":79,"getter":79,"default":122,"public":88},"stackable","false",{"name":124,"description":125,"type":126,"setter":79,"getter":79,"default":127,"public":88},"stack_size","The maximum stack size for this item.","int","0",{"name":129,"description":130,"type":131,"setter":79,"getter":79,"default":132,"public":88},"weight","How much this type of item weighs. Used by [method GGInventory.item_weight] to calculate the weight of all items.","float","0.0",{"name":134,"description":135,"type":136,"setter":79,"getter":79,"public":88},"audio","The audio to use when interacting with the item.","GGItemAudio",[],[],"Resource","GGItemType","content","40.reference/2.0/gg_inventory/GGItemType.xml","40.reference/2.0/gg_inventory/GGItemType","xml",1743268967713]