mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-15 08:25:21 +01:00
Add a changing weather id
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user