hestia-rsps / hestia

An open-source Kotlin game server.
BSD 3-Clause "New" or "Revised" License
16 stars 4 forks source link

Split Task and Entity Context #117

Closed GregHib closed 4 years ago

GregHib commented 4 years ago

Some actions don't always need to execute a task. e.g. on().where {} they just want access to the context and the extensions that comes along with.

Moving extensions to separate entity & target context interfaces should solve this issue. Also would be good to avoid having to create TargetContext and the TargetEvent should just be passed directly. (Probably should be called more abstract than event)

GregHib commented 4 years ago

This should also resolve passing the event around event(task). But might require some Task rethinking.