Class GGInventoryUseStrategy extends Resource

The Use Strategy determines how an inventory item is used.

The strategy runs on the client when GGInventory.use() is called.

The default behavior is to call GGInventory.request_use_item(), which sends a request to the server.

Extend this class and override the behavior to instead handle items locally on the client.

# Methods

## 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].
func use(inventory: GGInventoryslot_id: intcontext_id: int) -> bool