Mind Linker
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
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.
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.