Пример #1
0
        /// <summary>
        /// Creates organism from DNA
        /// </summary>
        /// <returns>Organism created from DNA</returns>
        public OrganismEntity CreateOrganism(Organisms.DNA dna, Physics.Common.Vector2 position = default(Physics.Common.Vector2))
        {
            OrganismEntity organism = CreateEntity <OrganismEntity>();

            organism.Organism = Simulation.CreateOrganism(dna, position);

            return(organism);
        }
Пример #2
0
 public OrganismEntityRenderer(OrganismEntity entity)
 {
     Entity = entity;
 }