import { Attachment } from "./Attachment";
import { Texture } from "../../2d/texture";
import { SpineColor } from "../SpineColor";

export class RegionAttachment extends Attachment {
    color: SpineColor = new SpineColor(1, 1, 1, 1);
    constructor(
        name: string,
        public x: number = 0,
        public y: number = 0,
        public scaleX: number = 1,
        public scaleY: number = 1,
        public rotation: number = 0,
        public width: number = 0,
        public height: number = 0,
        //应用的纹理
        public texture: Texture
    ) {
        super(name)
    }
}

