[Shared Tasks] Implement Activity Locking (#2339)

* Add shared task element locking

This adds the `lock_activity_id` field to the tasks table which will
automatically lock a shared task when that element becomes active.

A method was added to world analogous to zone's UnlockActivities to
determine when an activity is active with respect to task steps.

Also adds quest apis to manually lock or unlock a client's shared task

* Add comment
This commit is contained in:
hg authored and GitHub committed 2022-07-30 19:57:57 -05:00
1 parent ea878ed27f
commit f64d072af7
15 files changed
+149 -30

No files matched your search

@@ -0,0 +1,2 @@
ALTER TABLE `tasks`
ADD COLUMN `lock_activity_id` INT NOT NULL DEFAULT '-1' AFTER `request_timer_seconds`;