LeviLamina
Loading...
Searching...
No Matches
LootItemCondition.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8class Random;
9namespace Json { class Value; }
10// clang-format on
11
13public:
14 // LootItemCondition inner types define
15 enum class ConditionType : int {
16 KilledByPlayer = 0,
17 KilledByPlayerOrPets = 1,
18 KilledByActor = 2,
19 ActorKilled = 3,
20 RandomChance = 4,
21 RandomDifficultyChance = 5,
22 RandomChanceWithLooting = 6,
23 RandomRegionalDifficultyChance = 7,
24 HasMarkVariant = 8,
25 HasVariant = 9,
26 MatchTool = 10,
27 DamagedByActor = 11,
28 PassengerOfActor = 12,
29 IsBaby = 13,
30 ActorFilter = 14,
31 HasPropertyCondition = 15,
32 BoolPropertyValueCondition = 16,
33 IntPropertyValueCondition = 17,
34 FloatPropertyValueCondition = 18,
35 EnumPropertyValueCondition = 19,
36 };
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 0
42 virtual ~LootItemCondition() = default;
43
44 // vIndex: 1
45 virtual bool applies(::Random&, ::LootTableContext&) = 0;
46
47 // vIndex: 2
48 virtual ::LootItemCondition::ConditionType getConditionType() const = 0;
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCNAPI static ::std::unique_ptr<::LootItemCondition> deserialize(::Json::Value const& object, bool);
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60
61 // NOLINTEND
62};
Definition Value.h:16
Definition LootItemCondition.h:12
static MCAPI ::std::unique_ptr<::LootItemCondition > deserialize(::Json::Value const &object, bool)
Definition LootTableContext.h:19
Definition Random.h:10