LeviLamina
Loading...
Searching...
No Matches
SpawnChanceSubcomponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/entity/components_json_legacy/OnHitSubcomponent.h"
7#include "mc/world/actor/ActorDefinitionIdentifier.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
14namespace Json { class Value; }
15// clang-format on
16
17class SpawnChanceSubcomponent : public ::OnHitSubcomponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 176, ::ActorDefinitionIdentifier> mSpawnDefinition;
22 ::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTrigger>> mSpawnTriggers;
23 ::ll::TypedStorage<4, 4, float> mFirstSpawnChance;
24 ::ll::TypedStorage<4, 4, float> mSecondSpawnChance;
25 ::ll::TypedStorage<4, 4, int> mFirstSpawnCount;
26 ::ll::TypedStorage<4, 4, int> mSecondSpawnCount;
27 ::ll::TypedStorage<1, 1, bool> mSpawnBaby;
28 // NOLINTEND
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ~SpawnChanceSubcomponent() /*override*/ = default;
34
35 virtual void readfromJSON(::Json::Value& component) /*override*/;
36
37 virtual void writetoJSON(::Json::Value& component) const /*override*/;
38
39 virtual void doOnHitEffect(::Actor& owner, ::ProjectileComponent&) /*override*/;
40
41 virtual char const* getName() const /*override*/;
42 // NOLINTEND
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI SpawnChanceSubcomponent();
48 // NOLINTEND
49
50public:
51 // constructor thunks
52 // NOLINTBEGIN
53 MCAPI void* $ctor();
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCAPI void $readfromJSON(::Json::Value& component);
60
61 MCAPI void $writetoJSON(::Json::Value& component) const;
62
63 MCAPI void $doOnHitEffect(::Actor& owner, ::ProjectileComponent&);
64
65 MCAPI char const* $getName() const;
66
67
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
Definition ActorDefinitionTrigger.h:16
Definition Actor.h:125
Definition Value.h:16
Definition ProjectileComponent.h:31
static MCAPI void ** $vftable()