LeviLamina
Loading...
Searching...
No Matches
IntRange.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Random;
8namespace Json { class Value; }
9// clang-format on
10
11struct IntRange {
12public:
13 // member variables
14 // NOLINTBEGIN
17 // NOLINTEND
18
19public:
20 // prevent constructor by default
21 IntRange& operator=(IntRange const&);
22 IntRange(IntRange const&);
23 IntRange();
24
25public:
26 // member functions
27 // NOLINTBEGIN
28 MCAPI explicit IntRange(int value);
29
30 MCAPI IntRange(int min, int max);
31
32 MCAPI int getValue(::Random& random) const;
33
34 MCAPI int getValueInclusive(::Random& random) const;
35
36 MCAPI bool parseJson(::Json::Value node, int minDefault, int maxDefault);
37 // NOLINTEND
38
39public:
40 // static variables
41 // NOLINTBEGIN
42 MCAPI static ::IntRange const& ZERO();
43 // NOLINTEND
44
45public:
46 // constructor thunks
47 // NOLINTBEGIN
48 MCAPI void* $ctor(int value);
49
50 MCAPI void* $ctor(int min, int max);
51 // NOLINTEND
52};
Definition Value.h:16
Definition Random.h:16
Definition IntRange.h:11
Definition Alias.h:14