LeviLamina
Loading...
Searching...
No Matches
ScriptStat.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace cereal { struct ReflectionCtx; }
8// clang-format on
9
10class ScriptStat {
11public:
12 // ScriptStat inner types define
13 enum class Type : uint {
14 Bytes = 0,
15 Milliseconds = 1,
16 Microseconds = 2,
17 BiasedPercent = 3,
18 String = 4,
19 Nanoseconds = 5,
20 };
21
22public:
23 // member variables
24 // NOLINTBEGIN
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 ScriptStat();
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCNAPI ScriptStat(::ScriptStat const&);
40
41 MCNAPI ScriptStat(
42 ::std::string name,
43 ::std::variant<int64, ::std::string> value,
44 ::std::optional<::ScriptStat::Type> type,
45 ::std::optional<::std::vector<::ScriptStat>> children
46 );
47
48 MCNAPI ScriptStat(
49 ::std::string name,
50 ::std::optional<::std::vector<::std::variant<int64, ::std::string>>> values,
51 ::std::optional<::ScriptStat::Type> type,
52 ::std::optional<::std::vector<::ScriptStat>> children
53 );
54
55 MCNAPI ::ScriptStat& addChild(::ScriptStat&& child);
56
57 MCNAPI ::ScriptStat& operator=(::ScriptStat&&);
58
59 MCNAPI ::ScriptStat& operator=(::ScriptStat const&);
60
61 MCNAPI ~ScriptStat();
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCNAPI static void bindType(::cereal::ReflectionCtx& ctx);
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCNAPI void* $ctor(::ScriptStat const&);
74
75 MCNAPI void* $ctor(
76 ::std::string name,
77 ::std::variant<int64, ::std::string> value,
78 ::std::optional<::ScriptStat::Type> type,
79 ::std::optional<::std::vector<::ScriptStat>> children
80 );
81
82 MCNAPI void* $ctor(
83 ::std::string name,
84 ::std::optional<::std::vector<::std::variant<int64, ::std::string>>> values,
85 ::std::optional<::ScriptStat::Type> type,
86 ::std::optional<::std::vector<::ScriptStat>> children
87 );
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCNAPI void $dtor();
94 // NOLINTEND
95};
96
97// free functions
98// NOLINTBEGIN
99MCNAPI bool operator==(::ScriptStat const&, ::ScriptStat const&);
100// NOLINTEND
Definition ScriptStat.h:10
MCAPI ScriptStat(::std::string name, ::std::variant< int64, ::std::string > value, ::std::optional<::ScriptStat::Type > type, ::std::optional<::std::vector<::ScriptStat > > children)
MCAPI ScriptStat(::ScriptStat const &)
MCAPI void * $ctor(::std::string name, ::std::optional<::std::vector<::std::variant< int64, ::std::string > > > values, ::std::optional<::ScriptStat::Type > type, ::std::optional<::std::vector<::ScriptStat > > children)
MCAPI::ScriptStat & operator=(::ScriptStat const &)
MCAPI ~ScriptStat()
MCAPI::ScriptStat & operator=(::ScriptStat &&)
MCAPI ScriptStat(::std::string name, ::std::optional<::std::vector<::std::variant< int64, ::std::string > > > values, ::std::optional<::ScriptStat::Type > type, ::std::optional<::std::vector<::ScriptStat > > children)
MCAPI void * $ctor(::std::string name, ::std::variant< int64, ::std::string > value, ::std::optional<::ScriptStat::Type > type, ::std::optional<::std::vector<::ScriptStat > > children)
MCAPI void $dtor()
MCAPI::ScriptStat & addChild(::ScriptStat &&child)
static MCAPI void bindType(::cereal::ReflectionCtx &ctx)
MCAPI void * $ctor(::ScriptStat const &)
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14