mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
feat: display a handheld item in first-person view (WIP)
This commit is contained in:
parent
fb17228eff
commit
b93668ba94
9 changed files with 110 additions and 38 deletions
|
|
@ -252,7 +252,7 @@ entityid_t Player::getSelectedEntity() const {
|
|||
return selectedEid;
|
||||
}
|
||||
|
||||
std::shared_ptr<Inventory> Player::getInventory() const {
|
||||
const std::shared_ptr<Inventory>& Player::getInventory() const {
|
||||
return inventory;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ public:
|
|||
|
||||
entityid_t getSelectedEntity() const;
|
||||
|
||||
std::shared_ptr<Inventory> getInventory() const;
|
||||
const std::shared_ptr<Inventory>& getInventory() const;
|
||||
|
||||
glm::vec3 getPosition() const {
|
||||
return position;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue