Esempio n. 1
0
        public RobotPlayerPart(IWorldLocator worldLocator,
                               RobotPlayerNormalMovementPart normalMovement,
                               ISimulationEngine simulationEngine,
                               PrototypeObjectsFactory prototypeObjectsFactory,
                               IMeshRenderComponent meshRenderComponent,
                               IPositionComponent physical)
        {
            WorldLocator            = worldLocator;
            NormalMovement          = normalMovement;
            SimulationEngine        = simulationEngine;
            PrototypeObjectsFactory = prototypeObjectsFactory;
            MeshRenderComponent     = meshRenderComponent;
            Physical = physical;

            Items  = new List <ItemPart>();
            Health = 100;
        }
Esempio n. 2
0
 public World(PrototypeObjectsFactory factory, Func <Physical> createPhysical)
 {
     this.factory        = factory;
     this.createPhysical = createPhysical;
 }