All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zerotoheroes.hsgameentities.replaydata.meta.options.Option Maven / Gradle / Ivy

There is a newer version: 1.0.37
Show newest version
package com.zerotoheroes.hsgameentities.replaydata.meta.options;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessOrder;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorOrder;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;

import com.zerotoheroes.hsgameentities.replaydata.GameData;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@XmlRootElement(name = "Option")
@NoArgsConstructor
@XmlAccessorType(XmlAccessType.FIELD)
@XmlAccessorOrder(XmlAccessOrder.ALPHABETICAL)
@ToString
public class Option extends GameData {

	@XmlAttribute(name = "index")
	private int index;

	@XmlAttribute(name = "type")
	private int type;

	@XmlAttribute(name = "entity")
	private int entity;

	@XmlAttribute(name = "error")
	private int error;

	//@formatter:off
	@XmlElements({
			@XmlElement(name = "SubOption", type = SubOption.class),
			@XmlElement(name = "Target", type = Target.class),
	})
	//@formatter:on
	private List optionsItems = new ArrayList<>();

	public Option(int index, int type, int entity, int error, List optionsItems) {
		super();
		this.index = index;
		this.type = type;
		this.entity = entity;
		this.error = error;
		this.optionsItems = optionsItems;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy