mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-26 15:04:06 +00:00
shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
This commit is contained in:
parent
d63f79325f
commit
7074f35e4b
1373 changed files with 12054 additions and 12054 deletions
|
|
@ -26,17 +26,17 @@ public:
|
|||
protected:
|
||||
Level *level;
|
||||
private:
|
||||
deque<shared_ptr<Particle> > particles[3][TEXTURE_COUNT]; // 4J made two arrays to cope with simultaneous two dimensions
|
||||
deque<std::shared_ptr<Particle> > particles[3][TEXTURE_COUNT]; // 4J made two arrays to cope with simultaneous two dimensions
|
||||
Textures *textures;
|
||||
Random *random;
|
||||
|
||||
public:
|
||||
ParticleEngine(Level *level, Textures *textures);
|
||||
~ParticleEngine();
|
||||
void add(shared_ptr<Particle> p);
|
||||
void add(std::shared_ptr<Particle> p);
|
||||
void tick();
|
||||
void render(shared_ptr<Entity> player, float a);
|
||||
void renderLit(shared_ptr<Entity> player, float a);
|
||||
void render(std::shared_ptr<Entity> player, float a);
|
||||
void renderLit(std::shared_ptr<Entity> player, float a);
|
||||
void setLevel(Level *level);
|
||||
void destroy(int x, int y, int z, int tid, int data);
|
||||
void crack(int x, int y, int z, int face);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue