mirror of
https://github.com/Anime-Game-Servers/AnimeGamesLua.git
synced 2024-11-26 22:00:32 +00:00
[GI] Added models for SharedQuestDataHandling
This commit is contained in:
parent
1fe2854411
commit
a91021a048
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user