Mind Linker ![code/datums/components/mind_linker.dm 8](git.png)
A component that handles linking multiple player's minds into one network which allows them to talk directly to one another. Like telepathy but for multiple people at once!
Vars | |
chat_color | The color of the network when talking in chat |
---|---|
linked_mobs | An assoc list of mob/livings to datum/action/innate/linked_speechs. All the mobs that are linked to our network. |
master_speech | The master's speech action. The owner of the link shouldn't lose this as long as the link remains. |
network_name | The name of our network, displayed to all users. |
post_unlink_callback | A callback invoked after an unlink is done. Optional. |
signals_which_destroy_us | A list of all signals that will call qdel() on our component if triggered. Optional. |
speech_action_background_icon_state | The icon background for the speech action handed out. |
speech_action_icon | The icon file given to the speech action handed out. |
speech_action_icon_state | The icon state applied to the speech action handed out. |
speech_action_overlay_state | The border icon state for the speech action handed out. |
Procs | |
destroy_link | Signal proc sent from any signals given to us initialize. Destroys our component and unlinks everyone. |
link_mob | Attempts to link [to_link] to our network, giving them a speech action. |
unlink_mob | Unlinks [to_unlink] from our network, deleting their speech action and cleaning up anything involved. |
Var Details
chat_color ![code/datums/components/mind_linker.dm 12](git.png)
The color of the network when talking in chat
linked_mobs ![code/datums/components/mind_linker.dm 28](git.png)
An assoc list of mob/livings to datum/action/innate/linked_speechs. All the mobs that are linked to our network.
master_speech ![code/datums/components/mind_linker.dm 26](git.png)
The master's speech action. The owner of the link shouldn't lose this as long as the link remains.
network_name ![code/datums/components/mind_linker.dm 10](git.png)
The name of our network, displayed to all users.
post_unlink_callback ![code/datums/components/mind_linker.dm 16](git.png)
A callback invoked after an unlink is done. Optional.
signals_which_destroy_us ![code/datums/components/mind_linker.dm 14](git.png)
A list of all signals that will call qdel() on our component if triggered. Optional.
speech_action_background_icon_state ![code/datums/components/mind_linker.dm 22](git.png)
The icon background for the speech action handed out.
speech_action_icon ![code/datums/components/mind_linker.dm 18](git.png)
The icon file given to the speech action handed out.
speech_action_icon_state ![code/datums/components/mind_linker.dm 20](git.png)
The icon state applied to the speech action handed out.
speech_action_overlay_state ![code/datums/components/mind_linker.dm 24](git.png)
The border icon state for the speech action handed out.
Proc Details
destroy_link
Signal proc sent from any signals given to us initialize. Destroys our component and unlinks everyone.
link_mob
Attempts to link [to_link] to our network, giving them a speech action.
Returns TRUE if successful, FALSE otherwise
unlink_mob
Unlinks [to_unlink] from our network, deleting their speech action and cleaning up anything involved.
Also invokes post_unlink_callback, if supplied.