-
Notifications
You must be signed in to change notification settings - Fork 186
Move lineage fields from genome to creature #749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8e67a4e
8023cc3
c5483f3
8b09b84
1d58442
0371717
02ae162
f3b9252
67c7112
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,10 @@ __global__ void cudaChangeObject(SimulationData data, TOs changeTO) | |
| EntityFactory entityFactory; | ||
| entityFactory.init(&data); | ||
| entityFactory.changeObjectFromTO(changeTO, objectTO, object); | ||
| if (objectTO.type == ObjectType_Cell) { | ||
| auto const& creatureTO = changeTO.creatures[objectTO.typeData.cell.creatureIndex]; | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use a new method changeCreateFromTO (to be created in entityFactory)
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in 8023cc3: added |
||
| entityFactory.changeCreatureFromTO(creatureTO, object->typeData.cell.creature); | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method
void validateAndCorrect(ObjectDesc& object);should bevoid validateAndCorrect(ExtendedObjectDesc& object);. Then the removed validations here can be move to this place.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 8023cc3:
validateAndCorrectnow takesExtendedObjectDesc&and the creature lineage validation lives there.