* 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 97a4399472.
* 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>
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
#pragma once
|
|
using namespace std;
|
|
#include "Entity.h"
|
|
#include "HangingEntity.h"
|
|
|
|
class Level;
|
|
|
|
class ItemFrame : public HangingEntity
|
|
{
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_ITEM_FRAME; };
|
|
static Entity *create(Level *level) { return new ItemFrame(level); }
|
|
private:
|
|
static const int DATA_ITEM = 2;
|
|
static const int DATA_ROTATION = 3;
|
|
|
|
float dropChance;
|
|
|
|
private:
|
|
|
|
void _init();
|
|
|
|
public:
|
|
ItemFrame(Level *level);
|
|
ItemFrame(Level *level, int xTile, int yTile, int zTile, int dir);
|
|
|
|
protected:
|
|
virtual void defineSynchedData();
|
|
|
|
public:
|
|
virtual int getWidth() {return 9;}
|
|
virtual int getHeight() {return 9;}
|
|
virtual bool shouldRenderAtSqrDistance(double distance);
|
|
virtual void dropItem(shared_ptr<Entity> causedBy);
|
|
|
|
private:
|
|
void removeFramedMap(shared_ptr<ItemInstance> item);
|
|
|
|
public:
|
|
shared_ptr<ItemInstance> getItem();
|
|
void setItem(shared_ptr<ItemInstance> item);
|
|
int getRotation();
|
|
void setRotation(int rotation);
|
|
|
|
virtual void addAdditonalSaveData(CompoundTag *tag);
|
|
virtual void readAdditionalSaveData(CompoundTag *tag);
|
|
virtual bool interact(shared_ptr<Player> player);
|
|
}; |