[{"data":1,"prerenderedAt":140},["ShallowReactive",2],{"class-doc-/reference/2.0/gg_inventory/gginventorysystemdialogstrategy":3,"navigation":68},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"_id":8,"navigation":6,"addon":5,"version":9,"brief_description":10,"description":11,"tutorials":7,"methods":12,"signals":59,"constants":60,"members":61,"inherits":62,"name":63,"title":63,"_source":64,"_file":65,"_stem":66,"_extension":67},"/reference/2.0/gg_inventory/gginventorysystemdialogstrategy","gg_inventory",false,"","content:40.reference:2.0:gg_inventory:GGInventorySystemDialogStrategy.xml","2.0","The Dialog Strategy determines how inventories are presented to players.","When the game wants to present an inventory user interface to the player, it should call [code]GGInventorySystem.open_inventory()[/code] or [code]GGInventorySystem.open_transfer()[/code], which will defer to its configured dialog strategy. [br][br]The dialog strategy is responsible for ensuring the character has access, which typically involves using the [EntityAccessManager], and creating the appropriate [Control]s to present the user interface. [br][br]The default dialog strategy is provided by the [GGInventorySystemDialogStrategyDefault] class.",[13,27,34,41,47,53,56],{"description":14,"name":15,"public":16,"returnType":17,"params":18},"Called when [param inventory_system] should display the inventory of the [param object]. [br][br][b]Note[/b]: This method should not be called directly. Call [code]GGInventorySystem.open_inventory()[/code] instead.","open_inventory",true,"Control",[19,22,25],{"name":20,"type":21},"inventory_system","GGInventorySystemFacade",{"name":23,"type":24},"subject","Node",{"name":26,"type":24},"object",{"description":28,"name":29,"public":16,"returnType":17,"params":30},"Called when [param inventory_system] should display the inventories of the [param subject] and the [param object]. [br][br][b]Note[/b]: This method should not be called directly. Call [code]GGInventorySystem.open_transfer()[/code] instead.","open_transfer",[31,32,33],{"name":20,"type":21},{"name":23,"type":24},{"name":26,"type":24},{"description":35,"name":36,"public":16,"returnType":37,"params":38},"Looks up the name of the [param entity], so that it can be displayed in the inventory user interface as a title above their inventory.","resolve_entity_name","String",[39],{"name":40,"type":24},"entity",{"description":42,"name":43,"public":16,"returnType":44,"params":45},"Looks up the [GGEntityAccessManager] for the [param entity]. The access manager is used to ensure the player is allowed to access the inventory.","resolve_entity_access_manager","GGEntityAccessManager",[46],{"name":40,"type":24},{"description":48,"name":49,"public":16,"returnType":50,"params":51},"Looks up the [GGInventory] component for the [param entity].","resolve_entity_inventory","GGInventory",[52],{"name":40,"type":24},{"description":7,"name":54,"public":6,"returnType":37,"params":55},"_get_strategy_name",[],{"description":7,"name":57,"public":6,"returnType":37,"params":58},"_get_strategy_filename",[],[],[],[],"Resource","GGInventorySystemDialogStrategy","content","40.reference/2.0/gg_inventory/GGInventorySystemDialogStrategy.xml","40.reference/2.0/gg_inventory/GGInventorySystemDialogStrategy","xml",[69,78,105,125],{"title":70,"_path":71,"children":72},"Getting Started","/getting-started",[73,75],{"title":74,"_path":71},"Introduction",{"title":76,"_path":77},"Installation","/getting-started/installation",{"title":79,"_path":80,"children":81},"Concepts","/concepts",[82,84,87,90,93,96,99,102],{"title":83,"_path":80},"Overview",{"title":85,"_path":86},"Inventory","/concepts/inventory",{"title":88,"_path":89},"Interactions","/concepts/interaction",{"title":91,"_path":92},"Permissions","/concepts/permissions",{"title":94,"_path":95},"Multiplayer","/concepts/multiplayer",{"title":97,"_path":98},"User Interface","/concepts/user-interface",{"title":100,"_path":101},"Game Integration","/concepts/game-integration",{"title":103,"_path":104},"Crafting","/concepts/crafting",{"title":106,"_path":107,"children":108},"Demos","/demos",[109,111,114,117,119,122],{"title":110,"_path":107},"Inventory Tour",{"title":112,"_path":113},"Inventory UI Playground","/demos/inventory_ui",{"title":115,"_path":116},"Inventory Game UI","/demos/inventory_game_ui",{"title":103,"_path":118},"/demos/crafting",{"title":120,"_path":121},"Multiplayer Lobby","/demos/mp_lobby",{"title":123,"_path":124},"Sequencer (prototype)","/demos/sequencer",{"title":126,"_path":127,"children":128},"Guide","/guide",[129,131,134,137],{"title":130,"_path":127},"Architecture Deep Dive",{"title":132,"_path":133},"Design Principles","/guide/design-principles",{"title":135,"_path":136},"Changelog v2.x","/guide/changelog-v2",{"title":138,"_path":139},"Changelog v1.x","/guide/changelog",1743268980114]