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; }
public World(PrototypeObjectsFactory factory, Func <Physical> createPhysical) { this.factory = factory; this.createPhysical = createPhysical; }