mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-08 20:02:41 +01:00
24 lines
457 B
C++
24 lines
457 B
C++
#pragma once
|
|
#ifndef _ITEMPICKUP_HPP_
|
|
#define _ITEMPICKUP_HPP_
|
|
#include <objects/PickupObject.hpp>
|
|
#include <glm/glm.hpp>
|
|
|
|
class InventoryItem;
|
|
|
|
/**
|
|
* @brief The ItemPickup class
|
|
* Inserts an item into a characters inventory on pickup.
|
|
*/
|
|
class ItemPickup : public PickupObject
|
|
{
|
|
InventoryItem* item;
|
|
public:
|
|
|
|
ItemPickup(GameWorld* world, const glm::vec3& position, InventoryItem* item);
|
|
|
|
bool onCharacterTouch(CharacterObject* character);
|
|
};
|
|
|
|
#endif
|