// Path: core/src/me/minidigger/projecttd/components/SpriteComponent.java
// public class SpriteComponent implements Component, Pool.Poolable {
// 
//     public Sprite sprite;
// 
//     @Override
//     public void reset() {
//         sprite = null;
//     }
// }
// 
// Path: core/src/me/minidigger/projecttd/components/TransformComponent.java
// public class TransformComponent implements Component, Pool.Poolable {
// 
//     public Vector2 position;
//     public float rotation = 0f;
// 
//     @Override
//     public void reset() {
//         position = new Vector2();
//         rotation = 0f;
//     }
// }


import com.badlogic.ashley.core.ComponentMapper;
import com.badlogic.ashley.core.Entity;
import com.badlogic.ashley.core.Family;
import com.badlogic.ashley.systems.IteratingSystem;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import me.minidigger.projecttd.components.SpriteComponent;
import me.minidigger.projecttd.components.TransformComponent;
package me.minidigger.projecttd.systems;


/**
 * Created by Martin on 02.04.2017.
 */
public class RenderSystem extends IteratingSystem {

    private SpriteBatch batch;
    private Camera camera;

    private ComponentMapper<SpriteComponent> spriteM;
// Path: core/src/me/minidigger/projecttd/components/SpriteComponent.java
// public class SpriteComponent implements Component, Pool.Poolable {
// 
//     public Sprite sprite;
// 
//     @Override
//     public void reset() {
//         sprite = null;
//     }
// }
// 
// Path: core/src/me/minidigger/projecttd/components/TransformComponent.java
// public class TransformComponent implements Component, Pool.Poolable {
// 
//     public Vector2 position;
//     public float rotation = 0f;
// 
//     @Override
//     public void reset() {
//         position = new Vector2();
//         rotation = 0f;
//     }
// }


// Path: core/src/me/minidigger/projecttd/systems/RenderSystem.java
import com.badlogic.ashley.core.ComponentMapper;
import com.badlogic.ashley.core.Entity;
import com.badlogic.ashley.core.Family;
import com.badlogic.ashley.systems.IteratingSystem;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import me.minidigger.projecttd.components.SpriteComponent;
import me.minidigger.projecttd.components.TransformComponent;

package me.minidigger.projecttd.systems;


/**
 * Created by Martin on 02.04.2017.
 */
public class RenderSystem extends IteratingSystem {

    private SpriteBatch batch;
    private Camera camera;

    private ComponentMapper<SpriteComponent> spriteM;
    private ComponentMapper<TransformComponent> positionM;