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
26 ::ll::TypedStorage<4, 4, int> mainAllele;
27 ::ll::TypedStorage<4, 4, int> hiddenAllele;
28 // NOLINTEND
29 };
30
31public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 24, ::std::vector<::GeneticsComponent::Gene>> mGenes;
35 ::ll::TypedStorage<8, 8, ::GeneticsDefinition const*> mGeneticsDescription;
36 ::ll::TypedStorage<8, 8, ::Random*> mRandom;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI void addAdditionalSaveData(::CompoundTag& tag) const;
43
44 MCAPI void buildDebugInfo(::std::string& out) const;
45
46 MCAPI void fireGeneEvents(::Actor& owner) const;
47
48 MCAPI void initializeGenesFromParents(::Actor& owner, ::Actor& parentalUnit1, ::Actor& parentalUnit2);
49
50 MCAPI void readAdditionalSaveData(::Actor& owner, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
51 // NOLINTEND
52
53public:
54 // static variables
55 // NOLINTBEGIN
56 MCAPI static ::std::string const& GENE_ARRAY();
57
58 MCAPI static ::std::string const& HIDDEN_ALLELE();
59
60 MCAPI static ::std::string const& MAIN_ALLELE();
61 // NOLINTEND
62};
Definition Actor.h:106
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition GeneticsComponent.h:14
Definition GeneticsDefinition.h:16
Definition Random.h:10
Definition GeneticsComponent.h:22