C
- #pragma once
- #include "Packet.h"
- #include <unordered_map>
- #ifdef ENABLE_SWITCH_HOOK
- class CPythonSwitchHook {
- public:
- CPythonSwitchHook();
- ~CPythonSwitchHook();
- void Init();
- bool IsSwitchingSlot(int slot);
- bool AddSlot(int slot, TPlayerItemAttribute* attrs);
- bool RemoveSlot(int slot);
- void SetSwitchItem(int slot);
- void StartSwitchSlot(int slot, int count = 0);
- void SlotUpdated(int slot);
- static CPythonSwitchHook* Instance();
- private:
- int m_switchItemSlot;
- std::unordered_map<int, int> m_slots_to_count;
- std::unordered_map<int, std::vector<std::shared_ptr<TPlayerItemAttribute>>> m_slots_to_attr;
- static CPythonSwitchHook * currentInstance;
- static bool alreadyCreated;
- };
- #endif
Fehlermeldung: Error: namespace "std" has no member "shared_ptr"
Jemand einen Lösungsansatz ?