mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Implement event story
This commit is contained in:
1 parent
e140f8f839
commit
3bd5da7111
9 files changed
+316
-3
No files matched your search
@@ -188,6 +188,9 @@ public class GameData {
|
||||
// Activity: Task
|
||||
@Getter private static DataTable<ActivityTaskDef> ActivityTaskDataTable = new DataTable<>();
|
||||
@Getter private static DataTable<ActivityTaskGroupDef> ActivityTaskGroupDataTable = new DataTable<>();
|
||||
|
||||
// Activity: Story
|
||||
@Getter private static DataTable<ActivityStoryDef> ActivityStoryDataTable = new DataTable<>();
|
||||
|
||||
// Activity: Shop
|
||||
@Getter private static DataTable<ActivityShopDef> ActivityShopDataTable = new DataTable<>();
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package emu.nebula.data.resources;
|
||||
|
||||
import emu.nebula.data.BaseDef;
|
||||
import emu.nebula.data.ResourceType;
|
||||
import emu.nebula.game.inventory.ItemParamMap;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@ResourceType(name = "ActivityStory.json")
|
||||
public class ActivityStoryDef extends BaseDef {
|
||||
private int Id;
|
||||
private int ChapterId;
|
||||
|
||||
private String FirstCompleteReward;
|
||||
|
||||
private transient ItemParamMap rewards;
|
||||
|
||||
@Override
|
||||
public int getId() {
|
||||
return Id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
this.rewards = ItemParamMap.fromJsonString(this.FirstCompleteReward);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user