Exemplo n.º 1
0
 public FloorTileEntityFactory(FloorTileEntityConfig floorTileEntityConfig)
 {
     _floorTileEntityConfig = floorTileEntityConfig;
     _entityArchetype       = EntityManager.CreateArchetype(
         typeof(Translation),
         typeof(LocalToWorld),
         typeof(Rotation),
         typeof(RenderMesh),
         typeof(DestroyOutOfBoundsTag));
 }
Exemplo n.º 2
0
 public PlayerSpawningController(
     PlayerEntityFactory playerEntityFactory,
     PlayerEntityConfig playerEntityConfig,
     FloorTileEntityConfig floorTileEntityConfig,
     ScreenSizeModel screenSizeModel)
 {
     _playerEntityFactory   = playerEntityFactory;
     _playerEntityConfig    = playerEntityConfig;
     _floorTileEntityConfig = floorTileEntityConfig;
     _screenSizeModel       = screenSizeModel;
 }
        public FloorSpawningController(
            FloorTileEntityFactory floorTileEntityFactory,
            FloorTileEntityConfig floorTileEntityConfig,
            ScreenSizeModel screenSizeModel)
        {
            _floorTileEntityFactory = floorTileEntityFactory;
            _floorTileEntityConfig  = floorTileEntityConfig;
            _screenSizeModel        = screenSizeModel;

            _floorTileSize = _floorTileEntityConfig
                             .EntityMesh
                             .bounds
                             .size;
        }