public ItemPart(IPositionComponent physical, IMeshRenderComponent renderComponent, Random random)
 {
     Physical        = physical;
     RenderComponent = renderComponent;
     Random          = random;
     InStorage       = true;
 }
Example #2
0
 public IslandPart(IPositionComponent physical, IMeshRenderComponent renderComponent, BasicPhysicsPart physics, IslandMeshFactory islandMeshFactory)
 {
     Physical          = physical;
     RenderComponent   = renderComponent;
     Physics           = physics;
     IslandMeshFactory = islandMeshFactory;
 }
Example #3
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;
        }
 public GenerationSourcePart(GenerationPart generationPart, IPositionComponent physical, IMeshRenderComponent meshRenderComponent)
 {
     GenerationPart      = generationPart;
     Physical            = physical;
     MeshRenderComponent = meshRenderComponent;
 }
Example #5
0
 public TraderVisualizerPart(TraderPart traderPart, IMeshRenderComponent physical, IPositionComponent positionComponent)
 {
     this.PositionComponent = positionComponent;
     TraderPart             = traderPart;
     Physical = physical;
 }