1
0
Fork 0

Fixed ToLua issues

This commit is contained in:
archshift 2014-04-26 17:58:06 -07:00
parent e3c3795aa4
commit cc39d314ae
9 changed files with 24 additions and 19 deletions

View File

@ -57,6 +57,14 @@ if (NOT MSVC)
Entities/Pickup.h
Entities/Player.h
Entities/ProjectileEntity.h
Entities/ProjectileArrow.h
Entities/ProjectileEgg.h
Entities/ProjectileEnderPearl.h
Entities/ProjectileExpBottle.h
Entities/ProjectileSnowball.h
Entities/ProjectileFireCharge.h
Entities/ProjectileFirework.h
Entities/ProjectileGhastFireball.h
Entities/TNTEntity.h
Entities/ExpOrb.h
Entities/HangingEntity.h

View File

@ -10,6 +10,8 @@
// tolua_begin
class cArrowEntity :
public cProjectileEntity
{
@ -91,5 +93,4 @@ protected:
virtual void CollectedBy(cPlayer * a_Player) override;
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
// tolua_begin
};

View File

@ -10,6 +10,8 @@
// tolua_begin
class cThrownEggEntity :
public cProjectileEntity
{
@ -25,8 +27,6 @@ public:
protected:
// tolua_end
// cProjectileEntity overrides:
virtual void OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace) override;
virtual void OnHitEntity (cEntity & a_EntityHit, const Vector3d & a_HitPos) override;
@ -34,6 +34,4 @@ protected:
// Randomly decides whether to spawn a chicken where the egg lands.
void TrySpawnChicken(const Vector3d & a_HitPos);
// tolua_begin
} ;

View File

@ -10,6 +10,8 @@
// tolua_begin
class cThrownEnderPearlEntity :
public cProjectileEntity
{
@ -25,8 +27,6 @@ public:
protected:
// tolua_end
// cProjectileEntity overrides:
virtual void OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace) override;
virtual void OnHitEntity (cEntity & a_EntityHit, const Vector3d & a_HitPos) override;
@ -34,6 +34,4 @@ protected:
// Teleports the creator where the ender pearl lands.
void TeleportCreator(const Vector3d & a_HitPos);
// tolua_begin
} ;

View File

@ -10,6 +10,8 @@
// tolua_begin
class cExpBottleEntity :
public cProjectileEntity
{
@ -28,6 +30,4 @@ protected:
// cProjectileEntity overrides:
virtual void OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace) override;
// tolua_begin
};

View File

@ -10,6 +10,8 @@
// tolua_begin
class cFireChargeEntity :
public cProjectileEntity
{
@ -31,6 +33,4 @@ protected:
virtual void OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace) override;
virtual void OnHitEntity(cEntity & a_EntityHit, const Vector3d & a_HitPos) override;
// tolua_begin
} ;

View File

@ -10,6 +10,8 @@
// tolua_begin
class cFireworkEntity :
public cProjectileEntity
{
@ -35,6 +37,4 @@ private:
int m_ExplodeTimer;
cItem m_FireworkItem;
// tolua_begin
};

View File

@ -10,6 +10,8 @@
// tolua_begin
class cGhastFireballEntity :
public cProjectileEntity
{
@ -33,6 +35,4 @@ protected:
// TODO: Deflecting the fireballs by arrow- or sword- hits
// tolua_begin
} ;

View File

@ -10,6 +10,8 @@
// tolua_begin
class cThrownSnowballEntity :
public cProjectileEntity
{
@ -29,6 +31,4 @@ protected:
virtual void OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace) override;
virtual void OnHitEntity (cEntity & a_EntityHit, const Vector3d & a_HitPos) override;
// tolua_begin
} ;