Add a changing weather id

This commit is contained in:
yarik0chka
2022-04-21 22:21:24 +05:00
parent 0e7976f906
commit 0480f10a1a
4 changed files with 19 additions and 8 deletions

View File

@@ -34,7 +34,8 @@ public class GenshinScene {
private int time;
private ClimateType climate;
private int weather;
public GenshinScene(World world, SceneData sceneData) {
this.world = world;
this.sceneData = sceneData;
@@ -89,10 +90,18 @@ public class GenshinScene {
return climate;
}
public int getWeather() {
return weather;
}
public void setClimate(ClimateType climate) {
this.climate = climate;
}
public void setWeather(int weather) {
this.weather = weather;
}
public boolean isInScene(GenshinEntity entity) {
return this.entities.containsKey(entity.getId());
}