Class GGInventoryAccessPolicy extends Resource
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].
Whether an inventory is accessible at all is determined through the [GGEntityAccessManager] along with its [GGEntityAccessPolicy].
Access policies are not meant to be called directly. They are invoked by [GGInventory]'s permissions checks.
The [GGInventoryAccessPolicySimple] implements a configurable policy suitable for simple single-player and multiplayer games.
Whether an inventory is accessible at all is determined through the [GGEntityAccessManager] along with its [GGEntityAccessPolicy].
Access policies are not meant to be called directly. They are invoked by [GGInventory]'s permissions checks.
The [GGInventoryAccessPolicySimple] implements a configurable policy suitable for simple single-player and multiplayer games.
# Methods
## Returns whether the [param actor] is allowed to modify the [param inventory].func can_write(inventory: GGInventoryactor: Node) -> bool## Returns whether the [param actor] can add the [param item] to the [param inventory].func can_add_item(inventory: GGInventoryactor: Nodeitem: GGItemData) -> bool## Returns whether the [param actor] can remove the [param item] from the [param inventory].func can_remove_item(inventory: GGInventoryactor: Nodeitem: GGItemData) -> bool## Returns whether the [param actor] can use the [param item] in the [param inventory].func can_use_item(inventory: GGInventoryactor: Nodeitem: GGItemData) -> bool## Returns whether the [param actor] can drop the [param item] from the [param inventory].func can_drop_item(inventory: GGInventoryactor: Nodeitem: GGItemData) -> bool