Skip to content

on(Client)TimeChange and on(Client)WeatherChange #2064

@LVRENT

Description

@LVRENT

Is your feature request related to a problem? Please describe.
We don't have any events like these to be called when the time or the weather has been changed. Why it will be useful? We can develop world functions more precisely and with more organized code, depending on the exact moment when the time/weather has changed.
I know we can do this through Lua scripting (like using timers to check when these has changed or calling a scripter-defined function near the setTime/setWeather/setWeatherBlended) but as events they will be more concise and we can get rid by the custom functions/timers (this can also help for a little optimization?)

Describe the solution you'd like
Some new events like on(Client)TimeChange(currentTime, prevTime) and on(Client)WeatherChange(currentWeather, prevWeather).

Describe alternatives you've considered
We can use timers/scripter-defined functions but I think this will be better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions