LeviLamina
Loading...
Searching...
No Matches
ScriptStat.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5class ScriptStat {
6public:
7 // ScriptStat inner types define
8 enum class Type : uint {
9 Bytes = 0,
10 Milliseconds = 1,
11 Microseconds = 2,
12 BiasedPercent = 3,
13 };
14
15public:
16 // member variables
17 // NOLINTBEGIN
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 ScriptStat(ScriptStat const&);
27 ScriptStat();
28
29public:
30 // member functions
31 // NOLINTBEGIN
32 MCAPI ScriptStat(
33 ::std::string name,
34 int64 value,
35 ::std::optional<::ScriptStat::Type> type,
36 ::std::optional<::std::vector<::ScriptStat>> children
37 );
38
39 MCAPI ScriptStat(
40 ::std::string name,
41 ::std::optional<::std::vector<int64>> values,
42 ::std::optional<::ScriptStat::Type> type,
43 ::std::optional<::std::vector<::ScriptStat>> children
44 );
45
46 MCAPI ::ScriptStat& addChild(::ScriptStat&& child);
47
48 MCAPI ::ScriptStat& operator=(::ScriptStat const&);
49
50 MCAPI ::ScriptStat& operator=(::ScriptStat&&);
51
52 MCAPI ~ScriptStat();
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor(
59 ::std::string name,
60 int64 value,
61 ::std::optional<::ScriptStat::Type> type,
62 ::std::optional<::std::vector<::ScriptStat>> children
63 );
64
65 MCAPI void* $ctor(
66 ::std::string name,
67 ::std::optional<::std::vector<int64>> values,
68 ::std::optional<::ScriptStat::Type> type,
69 ::std::optional<::std::vector<::ScriptStat>> children
70 );
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCAPI void $dtor();
77 // NOLINTEND
78};
Definition ScriptStat.h:5
Definition Alias.h:14