LeviLamina
Loading...
Searching...
No Matches
WorldLoadPerformanceState.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7
8// auto generated forward declare list
9// clang-format off
12namespace Bedrock::Resources { struct WorldLoadPerformanceCacheState; }
14// clang-format on
15
16namespace Bedrock::Resources {
17
18class WorldLoadPerformanceState {
19public:
20 // member variables
21 // NOLINTBEGIN
24#ifdef LL_PLAT_S
27#else // LL_PLAT_C
30#endif
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
52 WorldLoadPerformanceState& operator=(WorldLoadPerformanceState const&);
53 WorldLoadPerformanceState(WorldLoadPerformanceState const&);
54 WorldLoadPerformanceState();
55
56public:
57 // member functions
58 // NOLINTBEGIN
59#ifdef LL_PLAT_C
60 MCNAPI ::Bedrock::Resources::WorldLoadPerformanceCacheState
61 buildCacheState(uint64 processUptimeInMs, ::std::string const& packStackHash) const;
62
63 MCNAPI void endContentLoadBeginResourceProcessingPhase();
64
65 MCNAPI void fireFailed(
67 ::ResourcePackStack const& packStack,
68 uint64 processUptimeInMs,
69 uint64 processUsedInB
70 );
71
72 MCNAPI void onResourcesReady(::ResourcePackStack const& packStack);
73
74 MCNAPI void sampleMemory();
75
76 MCNAPI void setFrameAnomalyDetector(::Bedrock::NonOwnerPointer<::FrameAnomalyDetector> frameAnomalyDetector);
77
78 MCNAPI void tryFireSuccess(
80 ::ResourcePackStack const& packStack,
81 uint64 processUptimeInMs,
82 uint64 processUsedInB,
83 bool hasLocalPlayer
84 );
85#endif
86 // NOLINTEND
87};
88
89} // namespace Bedrock::Resources
Definition NonOwnerPointer.h:9
Definition FrameAnomalyDetector.h:13
Definition IWorldLoadPerformanceEventing.h:5
Definition ResourcePackStack.h:26
Definition WorldLoadPerformanceCacheState.h:7
Definition Alias.h:14