Daedalus Dock - Modules - TypesVar Details - Proc Details

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_colorThe color of the network when talking in chat
link_messageThe message sent to someone when linked up.
linked_mobsAn assoc list of mob/livings to datum/action/innate/linked_speechs. All the mobs that are linked to our network.
linker_actionThe master's linking action, which allows them to link people to the network.
master_speechThe master's speech action. The owner of the link shouldn't lose this as long as the link remains.
network_nameThe name of our network, displayed to all users.
post_unlink_callbackA callback invoked after an unlink is done. Optional.
signals_which_destroy_usA list of all signals that will call qdel() on our component if triggered. Optional.
speech_action_background_icon_stateThe icon background for the speech action handed out.
speech_action_iconThe icon file given to the speech action handed out.
speech_action_icon_stateThe icon state applied to the speech action handed out.
unlink_messageThe message sent to someone when unlinked.

Procs

destroy_linkSignal proc sent from any signals given to us initialize. Destroys our component and unlinks everyone.
link_mobAttempts to link [to_link] to our network, giving them a speech action.
unlink_mobUnlinks [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

The message sent to someone when linked up.

linked_mobs

An assoc list of mob/livings to datum/action/innate/linked_speechs. All the mobs that are linked to our network.

linker_action

The master's linking action, which allows them to link people to the 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.

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.

The message sent to someone when unlinked.

Proc Details

Signal proc sent from any signals given to us initialize. Destroys our component and unlinks everyone.

Attempts to link [to_link] to our network, giving them a speech action.

Returns TRUE if successful, FALSE otherwise

Unlinks [to_unlink] from our network, deleting their speech action and cleaning up anything involved.

Also invokes post_unlink_callback, if supplied.