diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/Durango/Leaderboards/DurangoStatsDebugger.h | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.Client/Durango/Leaderboards/DurangoStatsDebugger.h')
| -rw-r--r-- | Minecraft.Client/Durango/Leaderboards/DurangoStatsDebugger.h | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/Minecraft.Client/Durango/Leaderboards/DurangoStatsDebugger.h b/Minecraft.Client/Durango/Leaderboards/DurangoStatsDebugger.h new file mode 100644 index 00000000..f2ac0383 --- /dev/null +++ b/Minecraft.Client/Durango/Leaderboards/DurangoStatsDebugger.h @@ -0,0 +1,94 @@ +#pragma once + +#include "stdafx.h" + +namespace P = Platform; +namespace PC = Platform::Collections; +namespace WF = Windows::Foundation; +namespace WFC = Windows::Foundation::Collections; +namespace MXSL = Microsoft::Xbox::Services::Leaderboard; + +class StatParam +{ +private: + wstring m_base; + int m_numArgs; + + vector<int> m_args; + +public: + StatParam(const wstring &base); + + void addArgs(int v1, ...); + + vector<wstring> *getStats(); + +}; + + +class DurangoStatsDebugger +{ +protected: + static DurangoStatsDebugger *instance; + + enum + { + ioid_Arrow = 10, + + ioid_Spiderjocky = 49, + ioid_Creeper = 50, + ioid_Skeleton, + ioid_Spider, + ioid_Giant, + ioid_Zombie, + ioid_Slime, + ioid_Ghast, + ioid_PigZombie, + ioid_Enderman, + ioid_CaveSpider, + ioid_Silverfish, + ioid_Blaze, + ioid_LavaSlime, + ioid_EnderDragon, + + ioid_Pig = 90, + ioid_Sheep, + ioid_Cow, + ioid_Chicken, + ioid_Squid, + ioid_Wolf, + ioid_MushroomCow, + ioid_SnowMan, + ioid_Ozelot, + ioid_VillagerGolem, + }; + + DurangoStatsDebugger(); + + vector<StatParam *> m_stats; + + vector<wstring> *getStats(); + +public: + static DurangoStatsDebugger *Initialize(); + + static void PrintStats(int iPad); + +private: + vector<wstring> m_printQueue; + + void retrieveStats(int iPad); + + typedef struct + { + int m_iPad; + wstring m_statName; + wstring m_score; + } StatResult; + + CRITICAL_SECTION m_retrievedStatsLock; + + vector<StatResult> m_retrievedStats; + + void addRetrievedStat(StatResult result); +};
\ No newline at end of file |
