LeviLamina
Loading...
Searching...
No Matches
GeneticsComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
8class CompoundTag;
11class Random;
12// clang-format on
13
15public:
16 // GeneticsComponent inner types declare
17 // clang-format off
18 struct Gene;
19 // clang-format on
20
21 // GeneticsComponent inner types define
22 struct Gene {
23 public:
24 // member variables
25 // NOLINTBEGIN
28 // NOLINTEND
29
30 public:
31 // prevent constructor by default
32 Gene& operator=(Gene const&);
33 Gene(Gene const&);
34 Gene();
35 };
36
37public:
38 // member variables
39 // NOLINTBEGIN
40 ::ll::TypedStorage<8, 24, ::std::vector<::GeneticsComponent::Gene>> mGenes;
41 ::ll::TypedStorage<8, 8, ::GeneticsDefinition const*> mGeneticsDescription;
42 ::ll::TypedStorage<8, 8, ::Random*> mRandom;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI void addAdditionalSaveData(::CompoundTag& tag) const;
49
50 MCAPI void buildDebugInfo(::std::string& out) const;
51
52 MCAPI void fireGeneEvents(::Actor& owner) const;
53
54 MCAPI void initializeGenesFromParents(::Actor& owner, ::Actor& parentalUnit1, ::Actor& parentalUnit2);
55
56 MCAPI void readAdditionalSaveData(::Actor& tag, ::CompoundTag const& owner, ::DataLoadHelper& dataLoadHelper);
57 // NOLINTEND
58
59public:
60 // static variables
61 // NOLINTBEGIN
62 MCAPI static ::std::string const& GENE_ARRAY();
63
64 MCAPI static ::std::string const& HIDDEN_ALLELE();
65
66 MCAPI static ::std::string const& MAIN_ALLELE();
67 // NOLINTEND
68};
Definition Actor.h:104
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition GeneticsComponent.h:14
Definition GeneticsDefinition.h:16
Definition Random.h:16
Definition GeneticsComponent.h:22
Definition Alias.h:14