2014-03-25 14:59:33 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Entity.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// tolua_begin
|
|
|
|
class cEnderCrystal :
|
|
|
|
public cEntity
|
|
|
|
{
|
|
|
|
// tolua_end
|
2020-04-13 12:38:06 -04:00
|
|
|
using Super = cEntity;
|
2014-03-25 14:59:33 -04:00
|
|
|
|
|
|
|
public:
|
2019-09-29 08:59:24 -04:00
|
|
|
|
2014-07-22 18:36:13 -04:00
|
|
|
CLASS_PROTODEF(cEnderCrystal)
|
2014-03-25 14:59:33 -04:00
|
|
|
|
2020-10-29 16:47:20 -04:00
|
|
|
cEnderCrystal(Vector3d a_Pos, bool a_ShowBottom);
|
2020-11-06 10:00:59 -05:00
|
|
|
cEnderCrystal(Vector3d a_Pos, Vector3i a_BeamTarget, bool a_DisplayBeam, bool a_ShowBottom);
|
2020-10-29 16:47:20 -04:00
|
|
|
|
2020-11-06 10:00:59 -05:00
|
|
|
// tolua_begin
|
2020-10-29 16:47:20 -04:00
|
|
|
|
|
|
|
Vector3i GetBeamTarget() const { return m_BeamTarget; }
|
2020-11-06 10:00:59 -05:00
|
|
|
void SetBeamTarget(Vector3i a_BeamTarget);
|
2020-10-29 16:47:20 -04:00
|
|
|
|
2020-11-06 10:00:59 -05:00
|
|
|
/** If the EnderCrystal should send it's beam to the client and save it. */
|
2020-10-29 16:47:20 -04:00
|
|
|
bool DisplaysBeam() const { return m_DisplayBeam; }
|
2020-11-06 10:00:59 -05:00
|
|
|
void SetDisplayBeam(bool a_DisplayBeam);
|
2014-03-25 14:59:33 -04:00
|
|
|
|
2020-11-06 10:00:59 -05:00
|
|
|
bool ShowsBottom() const { return m_ShowBottom; }
|
|
|
|
void SetShowBottom(bool a_ShowBottom);
|
2014-03-25 14:59:33 -04:00
|
|
|
|
2020-11-06 10:00:59 -05:00
|
|
|
// tolua_end
|
|
|
|
|
|
|
|
private:
|
2020-10-29 16:47:20 -04:00
|
|
|
|
|
|
|
Vector3i m_BeamTarget;
|
|
|
|
bool m_DisplayBeam;
|
|
|
|
|
2020-11-06 10:00:59 -05:00
|
|
|
// If the bedrock base should be displayed.
|
|
|
|
bool m_ShowBottom;
|
|
|
|
|
2014-03-25 14:59:33 -04:00
|
|
|
// cEntity overrides:
|
|
|
|
virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
|
2015-01-11 16:12:26 -05:00
|
|
|
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
|
2014-07-04 05:55:09 -04:00
|
|
|
virtual void KilledBy(TakeDamageInfo & a_TDI) override;
|
2014-03-25 14:59:33 -04:00
|
|
|
|
|
|
|
}; // tolua_export
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|