Exemplo n.º 1
0
        private static void Main()
        {
            var universe = Universe.Instance;

            Simulation.Add(universe);

            Seeder.Seed(universe);

            Simulation.Simulate(universe);
        }
Exemplo n.º 2
0
        protected override void Because()
        {
            _sim = new IndividualSimulation().WithName("Tralala");

            _organism = new Organism().WithName(Constants.ORGANISM);
            _sim.Add(_organism);

            _organ = new Organ().WithName("Liver");
            _organism.Add(_organ);

            _entityPathResolver = new EntityPathResolverForSpecs();
        }
Exemplo n.º 3
0
        public void Add <T>(ref T description, int otherBodyHandle) where T : IConstraintDescription <T>
        {
            var constraintHandle = simulation.Add(LocalBodyHandle, otherBodyHandle, ref description);

            ConstraintHandles.Add(constraintHandle);
        }