[{"data":1,"prerenderedAt":136},["ShallowReactive",2],{"class-doc-/reference/2.0/gg_inventory/gginventoryaccesspolicy":3,"navigation":64},{"_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":55,"constants":56,"members":57,"inherits":58,"name":59,"title":59,"_source":60,"_file":61,"_stem":62,"_extension":63},"/reference/2.0/gg_inventory/gginventoryaccesspolicy","gg_inventory",false,"","content:40.reference:2.0:gg_inventory:GGInventoryAccessPolicy.xml","2.0","Defines the Inventory Access Policy interface and defaults to denying all actions.","An Inventory Access Policy defines what an actor (character) is allowed to do with a [GGInventory]. [br][br]Whether an inventory is accessible at all is determined through the [GGEntityAccessManager] along with its [GGEntityAccessPolicy]. [br][br]Access policies are not meant to be called directly. They are invoked by [GGInventory]'s permissions checks. [br][br]The [GGInventoryAccessPolicySimple] implements a configurable policy suitable for simple single-player and multiplayer games.",[13,25,34,41,48],{"description":14,"name":15,"public":16,"returnType":17,"params":18},"Returns whether the [param actor] is allowed to modify the [param inventory].","can_write",true,"bool",[19,22],{"name":20,"type":21},"inventory","GGInventory",{"name":23,"type":24},"actor","Node",{"description":26,"name":27,"public":16,"returnType":17,"params":28},"Returns whether the [param actor] can add the [param item] to the [param inventory].","can_add_item",[29,30,31],{"name":20,"type":21},{"name":23,"type":24},{"name":32,"type":33},"item","GGItemData",{"description":35,"name":36,"public":16,"returnType":17,"params":37},"Returns whether the [param actor] can remove the [param item] from the [param inventory].","can_remove_item",[38,39,40],{"name":20,"type":21},{"name":23,"type":24},{"name":32,"type":33},{"description":42,"name":43,"public":16,"returnType":17,"params":44},"Returns whether the [param actor] can use the [param item] in the [param inventory].","can_use_item",[45,46,47],{"name":20,"type":21},{"name":23,"type":24},{"name":32,"type":33},{"description":49,"name":50,"public":16,"returnType":17,"params":51},"Returns whether the [param actor] can drop the [param item] from the [param inventory].","can_drop_item",[52,53,54],{"name":20,"type":21},{"name":23,"type":24},{"name":32,"type":33},[],[],[],"Resource","GGInventoryAccessPolicy","content","40.reference/2.0/gg_inventory/GGInventoryAccessPolicy.xml","40.reference/2.0/gg_inventory/GGInventoryAccessPolicy","xml",[65,74,101,121],{"title":66,"_path":67,"children":68},"Getting Started","/getting-started",[69,71],{"title":70,"_path":67},"Introduction",{"title":72,"_path":73},"Installation","/getting-started/installation",{"title":75,"_path":76,"children":77},"Concepts","/concepts",[78,80,83,86,89,92,95,98],{"title":79,"_path":76},"Overview",{"title":81,"_path":82},"Inventory","/concepts/inventory",{"title":84,"_path":85},"Interactions","/concepts/interaction",{"title":87,"_path":88},"Permissions","/concepts/permissions",{"title":90,"_path":91},"Multiplayer","/concepts/multiplayer",{"title":93,"_path":94},"User Interface","/concepts/user-interface",{"title":96,"_path":97},"Game Integration","/concepts/game-integration",{"title":99,"_path":100},"Crafting","/concepts/crafting",{"title":102,"_path":103,"children":104},"Demos","/demos",[105,107,110,113,115,118],{"title":106,"_path":103},"Inventory Tour",{"title":108,"_path":109},"Inventory UI Playground","/demos/inventory_ui",{"title":111,"_path":112},"Inventory Game UI","/demos/inventory_game_ui",{"title":99,"_path":114},"/demos/crafting",{"title":116,"_path":117},"Multiplayer Lobby","/demos/mp_lobby",{"title":119,"_path":120},"Sequencer (prototype)","/demos/sequencer",{"title":122,"_path":123,"children":124},"Guide","/guide",[125,127,130,133],{"title":126,"_path":123},"Architecture Deep Dive",{"title":128,"_path":129},"Design Principles","/guide/design-principles",{"title":131,"_path":132},"Changelog v2.x","/guide/changelog-v2",{"title":134,"_path":135},"Changelog v1.x","/guide/changelog",1743268976562]