[{"data":1,"prerenderedAt":108},["ShallowReactive",2],{"class-doc-/reference/2.0/gg_inventory/gginventoryusestrategy":3,"navigation":36},{"_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":27,"constants":28,"members":29,"inherits":30,"name":31,"title":31,"_source":32,"_file":33,"_stem":34,"_extension":35},"/reference/2.0/gg_inventory/gginventoryusestrategy","gg_inventory",false,"","content:40.reference:2.0:gg_inventory:GGInventoryUseStrategy.xml","2.0","The Use Strategy determines how an inventory item is used.","The strategy runs on the client when [method GGInventory.use] is called. [br][br]The default behavior is to call [method GGInventory.request_use_item], which sends a request to the server. [br][br]Extend this class and override the behavior to instead handle items locally on the client.",[13],{"description":14,"name":15,"public":16,"returnType":17,"params":18},"Handles the [method GGInventory.use] call for the [param slot_id] in [param inventory] for the actor identified by the [param context_id]. If the strategy successfully processed the request, it should return [code]true[/code], otherwise [code]false[/code].","use",true,"bool",[19,22,25],{"name":20,"type":21},"inventory","GGInventory",{"name":23,"type":24},"slot_id","int",{"name":26,"type":24},"context_id",[],[],[],"Resource","GGInventoryUseStrategy","content","40.reference/2.0/gg_inventory/GGInventoryUseStrategy.xml","40.reference/2.0/gg_inventory/GGInventoryUseStrategy","xml",[37,46,73,93],{"title":38,"_path":39,"children":40},"Getting Started","/getting-started",[41,43],{"title":42,"_path":39},"Introduction",{"title":44,"_path":45},"Installation","/getting-started/installation",{"title":47,"_path":48,"children":49},"Concepts","/concepts",[50,52,55,58,61,64,67,70],{"title":51,"_path":48},"Overview",{"title":53,"_path":54},"Inventory","/concepts/inventory",{"title":56,"_path":57},"Interactions","/concepts/interaction",{"title":59,"_path":60},"Permissions","/concepts/permissions",{"title":62,"_path":63},"Multiplayer","/concepts/multiplayer",{"title":65,"_path":66},"User Interface","/concepts/user-interface",{"title":68,"_path":69},"Game Integration","/concepts/game-integration",{"title":71,"_path":72},"Crafting","/concepts/crafting",{"title":74,"_path":75,"children":76},"Demos","/demos",[77,79,82,85,87,90],{"title":78,"_path":75},"Inventory Tour",{"title":80,"_path":81},"Inventory UI Playground","/demos/inventory_ui",{"title":83,"_path":84},"Inventory Game UI","/demos/inventory_game_ui",{"title":71,"_path":86},"/demos/crafting",{"title":88,"_path":89},"Multiplayer Lobby","/demos/mp_lobby",{"title":91,"_path":92},"Sequencer (prototype)","/demos/sequencer",{"title":94,"_path":95,"children":96},"Guide","/guide",[97,99,102,105],{"title":98,"_path":95},"Architecture Deep Dive",{"title":100,"_path":101},"Design Principles","/guide/design-principles",{"title":103,"_path":104},"Changelog v2.x","/guide/changelog-v2",{"title":106,"_path":107},"Changelog v1.x","/guide/changelog",1743268976859]