package com.alterdekim.game.entity;

import com.alterdekim.flash.decompiler.mapper.FlashClass;
import com.alterdekim.flash.decompiler.mapper.FlashField;
import com.alterdekim.flash.decompiler.mapper.FlashValue;
import com.alterdekim.flash.decompiler.mapper.FlashValueType;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.*;

@ToString
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name="roids")
@FlashClass(name = "ro")
public class ResourceObject {
    @Id
    @FlashValue(type = FlashValueType.Id)
    private Long id;

    @FlashField(name = "X")
    @Column(nullable = true)
    private Double x;

    @FlashField(name = "Y")
    @Column(nullable = true)
    private Double y;

    @FlashField(name = "Width")
    @Column(nullable = true)
    private Double width;

    @FlashField(name = "Height")
    @Column(nullable = true)
    private Double height;

    @FlashField(name = "IsCloseHide")
    @Column(nullable = true)
    private Boolean isCloseHide;

    @FlashField(name = "IsBackHide")
    @Column(nullable = true)
    private Boolean isBackHide;

    @FlashField(name = "Tongue")
    @Column(nullable = true)
    private String tongue;

    @FlashField(name = "Side")
    @Column(nullable = true)
    private String side;

    @FlashField(name = "Offset")
    @Column(nullable = true)
    private Integer offset;
}
