use length from dna
This commit is contained in:
@@ -9,7 +9,6 @@ struct DrawArgs
|
||||
{
|
||||
Vector2 start;
|
||||
float angleDeg;
|
||||
float length;
|
||||
int dep;
|
||||
Color parent;
|
||||
int size;
|
||||
@@ -40,4 +39,5 @@ private:
|
||||
inline Color get_end_color(int dep, Color &start);
|
||||
inline int get_start_size(DrawArgs &arg);
|
||||
inline int get_end_size(DrawArgs &arg, int start);
|
||||
inline float get_lenght(DrawArgs &arg);
|
||||
};
|
@@ -40,8 +40,6 @@ struct Branch
|
||||
uint8_t size_var;
|
||||
|
||||
uint8_t length;
|
||||
uint8_t length_parent;
|
||||
uint8_t length_level;
|
||||
uint8_t length_var;
|
||||
|
||||
uint8_t branch_count;
|
||||
@@ -56,7 +54,7 @@ struct Dna
|
||||
uint128 mountenSeed;
|
||||
uint128 starSeed;
|
||||
uint128 branchSeed;
|
||||
std::array<Branch, MAX_DEPTH> branches;
|
||||
Branch branches[MAX_DEPTH];
|
||||
};
|
||||
|
||||
void newDna(Dna &dna);
|
||||
|
Reference in New Issue
Block a user