LeviLamina
Loading...
Searching...
No Matches
ScriptDiagnostics.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8class ScriptStat;
9// clang-format on
10
12public:
13 // ScriptDiagnostics inner types declare
14 // clang-format off
15 struct StatCollector;
16 // clang-format on
17
18 // ScriptDiagnostics inner types define
20 public:
21 // member variables
22 // NOLINTBEGIN
30 // NOLINTEND
31
32 public:
33 // prevent constructor by default
34 StatCollector& operator=(StatCollector const&);
37
38 public:
39 // member functions
40 // NOLINTBEGIN
42
43 MCAPI ~StatCollector();
44 // NOLINTEND
45
46 public:
47 // constructor thunks
48 // NOLINTBEGIN
49 MCAPI void* $ctor(::ScriptDiagnostics::StatCollector&&);
50 // NOLINTEND
51
52 public:
53 // destructor thunk
54 // NOLINTBEGIN
55 MCAPI void $dtor();
56 // NOLINTEND
57 };
58
59public:
60 // member variables
61 // NOLINTBEGIN
66 // NOLINTEND
67
68public:
69 // prevent constructor by default
70 ScriptDiagnostics& operator=(ScriptDiagnostics const&);
73
74public:
75 // member functions
76 // NOLINTBEGIN
77 MCAPI void addStatCollector(
78 uint64 collectionTickFrequency,
79 ::std::function<::std::optional<::ScriptStat>(uint64, uint64, uint64)> collectorFn,
80 ::std::function<void()> enableFn,
81 ::std::function<void()> disableFn,
82 ::std::function<void(bool)> reloadFn
83 );
84
85 MCAPI void collectStats(uint64 currentTick);
86
87 MCAPI ~ScriptDiagnostics();
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCAPI void $dtor();
94 // NOLINTEND
95};
Definition IScriptStatPublisher.h:10
Definition ScriptDiagnostics.h:11
Definition ScriptStat.h:5
Definition ScriptDiagnostics.h:19
Definition Alias.h:14