Make more fields in excels accessible

This commit is contained in:
KingRainbow44 2023-05-21 21:32:48 -04:00
parent f66408fd3c
commit 49483dd607
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 22 additions and 16 deletions

View File

@ -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;

View File

@ -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() {}
}