package ecs.components;

import ecs.core.Component;

class Sprite extends Component {
	public final sprite:res.display.Sprite;

	public var anchorX:Float;
	public var anchorY:Float;

	public var flipX:Bool = false;
	public var flipY:Bool = false;
	public var wrap:Bool = true;

	public function new(sprite, anchorX = 0., anchorY = 0.) {
		super();

		this.sprite = sprite;
		this.anchorX = anchorX;
		this.anchorY = anchorY;
	}
}
