mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-15 17:52:53 +08:00
Make more fields in excels accessible
This commit is contained in:
parent
f66408fd3c
commit
49483dd607
@ -12,6 +12,8 @@ import lombok.Setter;
|
|||||||
|
|
||||||
public final class PointData {
|
public final class PointData {
|
||||||
@Getter @Setter private int id;
|
@Getter @Setter private int id;
|
||||||
|
@Getter private int areaId;
|
||||||
|
|
||||||
private String $type;
|
private String $type;
|
||||||
@Getter private Position tranPos;
|
@Getter private Position tranPos;
|
||||||
@Getter private Position pos;
|
@Getter private Position pos;
|
||||||
|
@ -1,30 +1,34 @@
|
|||||||
package emu.grasscutter.data.excels.world;
|
package emu.grasscutter.data.excels.world;
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName;
|
||||||
import emu.grasscutter.data.GameResource;
|
import emu.grasscutter.data.GameResource;
|
||||||
import emu.grasscutter.data.ResourceType;
|
import emu.grasscutter.data.ResourceType;
|
||||||
import emu.grasscutter.game.props.ElementType;
|
import emu.grasscutter.game.props.ElementType;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
@ResourceType(name = "WorldAreaConfigData.json")
|
@ResourceType(name = "WorldAreaConfigData.json")
|
||||||
public class WorldAreaData extends GameResource {
|
public class WorldAreaData extends GameResource {
|
||||||
private int ID;
|
private int ID;
|
||||||
private int AreaID1;
|
@Getter private ElementType elementType;
|
||||||
private int AreaID2;
|
|
||||||
private int SceneID;
|
@Getter
|
||||||
private ElementType elementType;
|
@SerializedName("AreaNameTextMapHash")
|
||||||
|
private long textMapHash;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@SerializedName("AreaID1")
|
||||||
|
private int parentArea;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@SerializedName("AreaID2")
|
||||||
|
private int childArea;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@SerializedName("SceneID")
|
||||||
|
private int sceneId;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getId() {
|
public int getId() {
|
||||||
return (this.AreaID2 << 16) + this.AreaID1;
|
return (this.childArea << 16) + this.parentArea;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getSceneID() {
|
|
||||||
return this.SceneID;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ElementType getElementType() {
|
|
||||||
return this.elementType;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onLoad() {}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user