Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor protocolcraft particles system
- Loading branch information
Showing
40 changed files
with
897 additions
and
1,435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
protocolCraft/include/protocolCraft/Types/Particles/BlockMarkerParticle.hpp
This file was deleted.
Oops, something went wrong.
20 changes: 6 additions & 14 deletions
20
...olCraft/Types/Particles/BlockParticle.hpp → .../Types/Particles/BlockParticleOptions.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,26 @@ | ||
#if PROTOCOL_VERSION > 392 /* > 1.12.2 */ | ||
#pragma once | ||
|
||
#include "protocolCraft/Types/Particles/Particle.hpp" | ||
#include "protocolCraft/Types/Particles/ParticleOptions.hpp" | ||
|
||
namespace ProtocolCraft | ||
{ | ||
class BlockParticle : public Particle | ||
class BlockParticleOptions : public ParticleOptions | ||
{ | ||
public: | ||
BlockParticle(); | ||
|
||
virtual ~BlockParticle(); | ||
|
||
virtual std::string GetName() const override; | ||
|
||
virtual ParticleType GetType() const override; | ||
BlockParticleOptions(); | ||
|
||
virtual ~BlockParticleOptions(); | ||
|
||
int GetState() const; | ||
|
||
void SetState(const int state_); | ||
|
||
protected: | ||
virtual void ReadImpl(ReadIterator& iter, size_t& length) override; | ||
|
||
virtual void WriteImpl(WriteContainer& container) const override; | ||
|
||
virtual Json::Value SerializeImpl() const override; | ||
|
||
private: | ||
int state = 0; | ||
}; | ||
} | ||
#endif |
35 changes: 0 additions & 35 deletions
35
protocolCraft/include/protocolCraft/Types/Particles/BlockcrackParticle.hpp
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
protocolCraft/include/protocolCraft/Types/Particles/BlockdustParticle.hpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.