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/Common/Tutorial/Tutorial.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/Common/Tutorial/Tutorial.h')
| -rw-r--r-- | Minecraft.Client/Common/Tutorial/Tutorial.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Minecraft.Client/Common/Tutorial/Tutorial.h b/Minecraft.Client/Common/Tutorial/Tutorial.h index aaaaba0a..e942ff32 100644 --- a/Minecraft.Client/Common/Tutorial/Tutorial.h +++ b/Minecraft.Client/Common/Tutorial/Tutorial.h @@ -11,7 +11,7 @@ using namespace std; // #define TUTORIAL_MINIMUM_DISPLAY_MESSAGE_TIME 2000 // #define TUTORIAL_REMINDER_TIME (TUTORIAL_DISPLAY_MESSAGE_TIME + 20000) // #define TUTORIAL_CONSTRAINT_DELAY_REMOVE_TICKS 15 -// +// // // 0-24000 // #define TUTORIAL_FREEZE_TIME_VALUE 8000 @@ -151,19 +151,19 @@ public: void showTutorialPopup(bool show); - void useItemOn(Level *level, shared_ptr<ItemInstance> item, int x, int y, int z,bool bTestUseOnly=false); - void useItemOn(shared_ptr<ItemInstance> item, bool bTestUseOnly=false); - void completeUsingItem(shared_ptr<ItemInstance> item); - void startDestroyBlock(shared_ptr<ItemInstance> item, Tile *tile); + void useItemOn(Level *level, std::shared_ptr<ItemInstance> item, int x, int y, int z,bool bTestUseOnly=false); + void useItemOn(std::shared_ptr<ItemInstance> item, bool bTestUseOnly=false); + void completeUsingItem(std::shared_ptr<ItemInstance> item); + void startDestroyBlock(std::shared_ptr<ItemInstance> item, Tile *tile); void destroyBlock(Tile *tile); - void attack(shared_ptr<Player> player, shared_ptr<Entity> entity); - void itemDamaged(shared_ptr<ItemInstance> item); + void attack(std::shared_ptr<Player> player, std::shared_ptr<Entity> entity); + void itemDamaged(std::shared_ptr<ItemInstance> item); void handleUIInput(int iAction); - void createItemSelected(shared_ptr<ItemInstance> item, bool canMake); - void onCrafted(shared_ptr<ItemInstance> item); - void onTake(shared_ptr<ItemInstance> item, unsigned int invItemCountAnyAux, unsigned int invItemCountThisAux); - void onSelectedItemChanged(shared_ptr<ItemInstance> item); + void createItemSelected(std::shared_ptr<ItemInstance> item, bool canMake); + void onCrafted(std::shared_ptr<ItemInstance> item); + void onTake(std::shared_ptr<ItemInstance> item, unsigned int invItemCountAnyAux, unsigned int invItemCountThisAux); + void onSelectedItemChanged(std::shared_ptr<ItemInstance> item); void onLookAt(int id, int iData=0); void onLookAtEntity(eINSTANCEOF type); void onEffectChanged(MobEffect *effect, bool bRemoved=false); |
