diff --git a/GILua/src/main/java/org/anime_game_servers/gi_lua/models/quest/QuestData.java b/GILua/src/main/java/org/anime_game_servers/gi_lua/models/quest/QuestData.java new file mode 100644 index 0000000..bf50c6b --- /dev/null +++ b/GILua/src/main/java/org/anime_game_servers/gi_lua/models/quest/QuestData.java @@ -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 transmitPoints; + private List npcs; + private List 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; + } +} diff --git a/GILua/src/main/java/org/anime_game_servers/gi_lua/models/quest/QuestDataNPC.java b/GILua/src/main/java/org/anime_game_servers/gi_lua/models/quest/QuestDataNPC.java new file mode 100644 index 0000000..65e3295 --- /dev/null +++ b/GILua/src/main/java/org/anime_game_servers/gi_lua/models/quest/QuestDataNPC.java @@ -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; +} diff --git a/GILua/src/main/java/org/anime_game_servers/gi_lua/models/quest/RewindData.java b/GILua/src/main/java/org/anime_game_servers/gi_lua/models/quest/RewindData.java new file mode 100644 index 0000000..a8800a2 --- /dev/null +++ b/GILua/src/main/java/org/anime_game_servers/gi_lua/models/quest/RewindData.java @@ -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 npcs; + + @ToString + @Getter + public static class AvatarData { + private String pos; + } +}