Entity, Renderer: Add (incomplete) pig, remake entity renderer

This commit is contained in:
Er2
2023-12-03 19:35:51 +03:00
parent 0afea4428c
commit d6bf825c11
26 changed files with 283 additions and 70 deletions

View File

@@ -9,7 +9,8 @@
#include "Player.hpp"
#include "world/level/Level.hpp"
Player::Player(Level* pLevel) : Mob(pLevel)
Player::Player(Level* pLevel) : Mob(pLevel),
m_model(0.0f, 0.0f)
{
m_pInventory = nullptr;
field_B94 = 0;
@@ -35,7 +36,6 @@ Player::Player(Level* pLevel) : Mob(pLevel)
m_health = 20;
m_class = "humanoid";
m_texture = "mob/char.png";
field_C4 = 20;
field_B5C = 180.0f;
@@ -373,3 +373,8 @@ void Player::interact(Entity* pEnt)
{
pEnt->interact(this);
}
Model *Player::getModel()
{
return &m_model;
}