[GI] Added models for SharedQuestDataHandling

This commit is contained in:
hartie95 2024-02-06 20:44:26 +01:00
parent 1fe2854411
commit a91021a048
3 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,30 @@
package org.anime_game_servers.gi_lua.models.quest;
import lombok.Getter;
import lombok.ToString;
import org.anime_game_servers.core.base.annotations.lua.LuaNames;
import java.util.List;
@Getter @ToString
public class QuestData {
@LuaNames("transmit_points")
private List<TransmitPoint> transmitPoints;
private List<QuestDataNPC> npcs;
private List<Gadget> gadgets;
@Getter @ToString
public static class TransmitPoint {
@LuaNames("point_id")
private int pointId;
@LuaNames("scene_id")
private int sceneId;
private String pos;
}
@Getter @ToString
public static class Gadget {
private int id;
private String pos;
}
}

View File

@ -0,0 +1,23 @@
package org.anime_game_servers.gi_lua.models.quest;
import lombok.Getter;
import lombok.ToString;
import org.anime_game_servers.core.base.annotations.lua.LuaNames;
/**
* TODO pos, alias and id can contain a placeholder in the format {var_name}
*/
@ToString
@Getter
public class QuestDataNPC {
private int id;
private String alias;
@LuaNames("data_index")
private int dataIndex;
@LuaNames("scene_id")
private int sceneId;
@LuaNames("room_id")
private int roomId;
private String pos;
private String script;
}

View File

@ -0,0 +1,19 @@
package org.anime_game_servers.gi_lua.models.quest;
import lombok.Getter;
import lombok.ToString;
import java.util.List;
@ToString
@Getter
public class RewindData {
private AvatarData avatar;
private List<QuestDataNPC> npcs;
@ToString
@Getter
public static class AvatarData {
private String pos;
}
}