feat: TU19 (Dec 2014) Features & Content (#155)
* try to resolve merge conflict * feat: TU19 (Dec 2014) Features & Content (#32) * December 2014 files * Working release build * Fix compilation issues * Add sound to Windows64Media * Add DLC content and force Tutorial DLC * Revert "Add DLC content and force Tutorial DLC" This reverts commit 97a43994725008e35fceb984d5549df9c8cea470. * Disable broken light packing * Disable breakpoint during DLC texture map load Allows DLC loading but the DLC textures are still broken * Fix post build not working * ... * fix vs2022 build * fix cmake build --------- Co-authored-by: Loki <lokirautio@gmail.com>
This commit is contained in:
@@ -3,27 +3,19 @@
|
||||
#include "LavaSlimeModel.h"
|
||||
#include "LavaSlimeRenderer.h"
|
||||
|
||||
ResourceLocation LavaSlimeRenderer::MAGMACUBE_LOCATION = ResourceLocation(TN_MOB_LAVA);
|
||||
|
||||
LavaSlimeRenderer::LavaSlimeRenderer() : MobRenderer(new LavaSlimeModel(), .25f)
|
||||
{
|
||||
this->modelVersion = ((LavaSlimeModel *) model)->getModelVersion();
|
||||
}
|
||||
|
||||
void LavaSlimeRenderer::render(shared_ptr<Entity> _mob, double x, double y, double z, float rot, float a)
|
||||
{
|
||||
// 4J - original version used generics and thus had an input parameter of type LavaSlime rather than shared_ptr<Entity> we have here -
|
||||
// do some casting around instead
|
||||
shared_ptr<LavaSlime> mob = dynamic_pointer_cast<LavaSlime>(_mob);
|
||||
int modelVersion = ((LavaSlimeModel *) model)->getModelVersion();
|
||||
if (modelVersion != this->modelVersion)
|
||||
{
|
||||
this->modelVersion = modelVersion;
|
||||
model = new LavaSlimeModel();
|
||||
app.DebugPrintf("new lava slime model\n");
|
||||
}
|
||||
MobRenderer::render(mob, x, y, z, rot, a);
|
||||
ResourceLocation *LavaSlimeRenderer::getTextureLocation(shared_ptr<Entity> mob)
|
||||
{
|
||||
return &MAGMACUBE_LOCATION;
|
||||
}
|
||||
|
||||
void LavaSlimeRenderer::scale(shared_ptr<Mob> _slime, float a)
|
||||
void LavaSlimeRenderer::scale(shared_ptr<LivingEntity> _slime, float a)
|
||||
{
|
||||
// 4J - original version used generics and thus had an input parameter of type LavaSlime rather than shared_ptr<Mob> we have here -
|
||||
// do some casting around instead
|
||||
|
||||
Reference in New Issue
Block a user