How does it work? - Terasology/Genome GitHub Wiki
Basic
Each individual of a breeding species will have a genome which contain a sequence of genes. During the production of offspring(child) -- resulted from breeding of two of the same organisms -- the genes sequences of both organisms(parents) will be combined according to a breeding algorithm to obtain the genome of the produced offspring.
Genome Component
Genome component contains the type of genome "genomeId" and the sequence of genes "genes". This component must be present on all organisms which can breed. The 2 fields needed:
- genomeId: This field is to denote the type of genome which differ between different species. This will be used to determine whether the two organisms are the same type or not and can breed.
- genes: This field contains string which represents the sequence of genes. The genes will be used to determine the hereditary of offsprings during their production. The genes field of 2 parents will be combined during the production of offspring and that combination will determine the genes field of produced offspring.