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
7
class
IRandom
;
8
namespace
Json {
class
Value
; }
9
// clang-format on
10
11
struct
IntRange {
12
public
:
13
// member variables
14
// NOLINTBEGIN
15
::ll::TypedStorage<4, 4, int> rangeMin;
16
::ll::TypedStorage<4, 4, int> rangeMax;
17
// NOLINTEND
18
19
public
:
20
// prevent constructor by default
21
IntRange();
22
23
public
:
24
// member functions
25
// NOLINTBEGIN
26
MCAPI
explicit
IntRange(
int
value);
27
28
MCAPI IntRange(
int
min,
int
max);
29
30
MCAPI
int
getValue(
::IRandom
& random)
const
;
31
32
MCAPI
int
getValueInclusive(
::IRandom
& random)
const
;
33
34
MCAPI
bool
isInRangeInclusive(
int
value)
const
;
35
36
MCAPI
bool
parseJson(
::Json::Value
node,
int
minDefault,
int
maxDefault);
37
// NOLINTEND
38
39
public
:
40
// constructor thunks
41
// NOLINTBEGIN
42
MCFOLD
void
* $ctor(
int
value);
43
44
MCFOLD
void
* $ctor(
int
min,
int
max);
45
// NOLINTEND
46
};
IRandom
Definition
IRandom.h:10
Json::Value
Definition
Value.h:16
src
mc
util
IntRange.h
Generated on
for LeviLamina by
1.16.1