mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-14 06:32:45 +01:00
b8860722fd
Inventory can now by cycled Weapon Pickups are created infront of the spawn
23 lines
495 B
C++
23 lines
495 B
C++
#pragma once
|
|
#ifndef _ITEMPICKUP_HPP_
|
|
#define _ITEMPICKUP_HPP_
|
|
#include <objects/PickupObject.hpp>
|
|
#include <glm/glm.hpp>
|
|
#include <data/WeaponData.hpp>
|
|
|
|
/**
|
|
* @brief The ItemPickup class
|
|
* Inserts an item into a characters inventory on pickup.
|
|
*/
|
|
class ItemPickup : public PickupObject
|
|
{
|
|
std::shared_ptr<WeaponData> _data;
|
|
public:
|
|
|
|
ItemPickup(GameWorld* world, const glm::vec3& position, std::shared_ptr<WeaponData> weapon);
|
|
|
|
bool onCharacterTouch(CharacterObject* character);
|
|
};
|
|
|
|
#endif
|