mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-03 22:48:54 +01:00
Co-authored-by: DrPerkyLegit <116128211+DrPerkyLegit@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Anaël <60509176+Bakoubak@users.noreply.github.com> Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/4205
35 lines
1018 B
C++
35 lines
1018 B
C++
#pragma once
|
|
#include "Item.h"
|
|
|
|
class IconRegister;
|
|
|
|
class BannerItem : public Item
|
|
{
|
|
public:
|
|
enum {
|
|
eBannerColor_White = 0,
|
|
eBannerColor_Orange = 1,
|
|
eBannerColor_Magenta = 2,
|
|
eBannerColor_LightBlue = 3,
|
|
eBannerColor_Yellow = 4,
|
|
eBannerColor_Lime = 5,
|
|
eBannerColor_Pink = 6,
|
|
eBannerColor_DarkGray = 7,
|
|
eBannerColor_LightGray = 8,
|
|
eBannerColor_Cyan = 9,
|
|
eBannerColor_Purple = 10,
|
|
eBannerColor_Blue = 11,
|
|
eBannerColor_Brown = 12,
|
|
eBannerColor_Green = 13,
|
|
eBannerColor_Red = 14,
|
|
eBannerColor_Black = 15,
|
|
};
|
|
private:
|
|
static const unsigned int COLOR_DESCS[16];
|
|
|
|
public:
|
|
BannerItem(int id);
|
|
virtual unsigned int getDescriptionId(shared_ptr<ItemInstance> instance) override;
|
|
virtual bool useOn(shared_ptr<ItemInstance> instance, shared_ptr<Player> player, Level *level, int x, int y, int z, int face, float clickX, float clickY, float clickZ, bool bTestUseOnOnly = false) override;
|
|
};
|