diff options
| author | void_17 <heroerror3@gmail.com> | 2026-03-02 15:58:20 +0700 |
|---|---|---|
| committer | void_17 <heroerror3@gmail.com> | 2026-03-02 15:58:20 +0700 |
| commit | 7074f35e4ba831e358117842b99ee35b87f85ae5 (patch) | |
| tree | 7d440d23473196af3056bf2ff4c59d9e740a06f5 /Minecraft.Client/PlayerRenderer.h | |
| parent | d63f79325f85e014361eb8cf1e41eaebedb1ae71 (diff) | |
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.
Diffstat (limited to 'Minecraft.Client/PlayerRenderer.h')
| -rw-r--r-- | Minecraft.Client/PlayerRenderer.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Minecraft.Client/PlayerRenderer.h b/Minecraft.Client/PlayerRenderer.h index 10564104..0d82fb8f 100644 --- a/Minecraft.Client/PlayerRenderer.h +++ b/Minecraft.Client/PlayerRenderer.h @@ -23,20 +23,20 @@ private: static const wstring MATERIAL_NAMES[5]; protected: - virtual int prepareArmor(shared_ptr<Mob> _player, int layer, float a); - virtual void prepareSecondPassArmor(shared_ptr<Mob> mob, int layer, float a); + virtual int prepareArmor(std::shared_ptr<Mob> _player, int layer, float a); + virtual void prepareSecondPassArmor(std::shared_ptr<Mob> mob, int layer, float a); public: - virtual void render(shared_ptr<Entity> _mob, double x, double y, double z, float rot, float a); + virtual void render(std::shared_ptr<Entity> _mob, double x, double y, double z, float rot, float a); protected: - virtual void renderName(shared_ptr<Mob> _mob, double x, double y, double z); - virtual void additionalRendering(shared_ptr<Mob> _mob, float a); - virtual void scale(shared_ptr<Mob> _player, float a); + virtual void renderName(std::shared_ptr<Mob> _mob, double x, double y, double z); + virtual void additionalRendering(std::shared_ptr<Mob> _mob, float a); + virtual void scale(std::shared_ptr<Mob> _player, float a); public: void renderHand(); protected: - virtual void setupPosition(shared_ptr<Mob> _mob, double x, double y, double z); - virtual void setupRotations(shared_ptr<Mob> _mob, float bob, float bodyRot, float a); + virtual void setupPosition(std::shared_ptr<Mob> _mob, double x, double y, double z); + virtual void setupRotations(std::shared_ptr<Mob> _mob, float bob, float bodyRot, float a); -private: - virtual void renderShadow(shared_ptr<Entity> e, double x, double y, double z, float pow, float a); // 4J Added override +private: + virtual void renderShadow(std::shared_ptr<Entity> e, double x, double y, double z, float pow, float a); // 4J Added override };
\ No newline at end of file |
