-
Notifications
You must be signed in to change notification settings - Fork 123
Sandbox.ModAPI.Ingame.IMyIntergridCommunicationSystem
← Index ← Namespace Index
public interface IMyIntergridCommunicationSystem
This is the entry point for all communication operations.
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Gets communication address for current programmable block.
IMyUnicastListener UnicastListener { get; }
Gets unicast listener for current programmable block.
void DisableBroadcastListener(IMyBroadcastListener broadcastListener)
Disables given broadcast listener. In case given broadcast listener is not active nothing happens. Instance of this broadcast listener remains valid and all pending messages may be accepted as normal. Disabling broadcast listener also disables it's message callback, if active. Consuming the last pending message will permanently disable the provided listener and it's never going to be activated again. ==> Registering new broadcast lister with the same tag will allocate new listener instance instead.
Retrieves list of all active broadcast listeners and listeners with pending messages, registered by current programmable block. Returned list is snapshot of current state and is not updated by future operations.
Determines if given endpoint is currently reachable. Similar to sending ICMP message.
IMyBroadcastListener RegisterBroadcastListener(string tag)
Registers broadcast listener with given tag for current programmable block. In case there is already another active broadcast lister with given tag new listener is NOT registered and the already active one is returned instead.
bool SendUnicastMessage<TData>(long addressee, string tag, TData data)
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!