mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-29 13:17:21 +00: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 {
|
||||
@Getter @Setter private int id;
|
||||
@Getter private int areaId;
|
||||
|
||||
private String $type;
|
||||
@Getter private Position tranPos;
|
||||
@Getter private Position pos;
|
||||
|
@ -1,30 +1,34 @@
|
||||
package emu.grasscutter.data.excels.world;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import emu.grasscutter.data.GameResource;
|
||||
import emu.grasscutter.data.ResourceType;
|
||||
import emu.grasscutter.game.props.ElementType;
|
||||
import lombok.Getter;
|
||||
|
||||
@ResourceType(name = "WorldAreaConfigData.json")
|
||||
public class WorldAreaData extends GameResource {
|
||||
private int ID;
|
||||
private int AreaID1;
|
||||
private int AreaID2;
|
||||
private int SceneID;
|
||||
private ElementType elementType;
|
||||
@Getter private ElementType elementType;
|
||||
|
||||
@Getter
|
||||
@SerializedName("AreaNameTextMapHash")
|
||||
private long textMapHash;
|
||||
|
||||
@Getter
|
||||
@SerializedName("AreaID1")
|
||||
private int parentArea;
|
||||
|
||||
@Getter
|
||||
@SerializedName("AreaID2")
|
||||
private int childArea;
|
||||
|
||||
@Getter
|
||||
@SerializedName("SceneID")
|
||||
private int sceneId;
|
||||
|
||||
@Override
|
||||
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