Add viewer_state for TGUI, an observational state (#22860)

* I like to watch

* Wires are secondary
This commit is contained in:
Vi3trice
2023-10-13 09:29:53 -04:00
committed by GitHub
parent 3df93abfa4
commit 3e757a900b
3 changed files with 15 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
/**
* tgui state: viewer_state
*
* State for only viewing, regardless of distance. Different from observer_state, which grants interactivity exclusively if an observer/admin.
*/
GLOBAL_DATUM_INIT(viewer_state, /datum/ui_state/viewer_state, new)
/datum/ui_state/viewer_state/can_use_topic(src_object, mob/user)
return STATUS_UPDATE