A Task version of then.
Somehow pass information to the task context? E.g. FloorItemOption, MobOption, etc.. all have a targetId: Int which should be passed on.
Consider revisiting EntityContext.
Idea:
interface EntityTask {
val entity: Int
val world: World
}
interface TargetTask : EntityTask {
val target: Int
}
That way extensions only apply when there is a target involved. And the event's can extend these so the data can be passed between the two.
A
Task
version ofthen
. Somehow pass information to the task context? E.g. FloorItemOption, MobOption, etc.. all have atargetId: Int
which should be passed on.Consider revisiting
EntityContext
.Idea:
That way extensions only apply when there is a target involved. And the event's can extend these so the data can be passed between the two.