This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
Sandbox.ModAPI.Ingame.IMyIntergridCommunicationSystem
Morten Aune Lyrstad edited this page Apr 16, 2022
·
25 revisions
← Index ← Namespace Index
public interface IMyIntergridCommunicationSystem
This is the entry point for all communication operations.
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Member | Description |
---|---|
long Me { get; } | Gets communication address for current programmable block. |
IMyUnicastListener UnicastListener { get; } | Gets unicast listener for current programmable block. |
Member | Description |
---|---|
void DisableBroadcastListener(IMyBroadcastListener) | 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 the provided listener and it's never going to be activated again. ==> Registering new broadcast lister with the same tag will will allocate new listener instance instead. |
[void GetBroadcastListeners(List<IMyBroadcastListener>, [Func<IMyBroadcastListener, bool>])](Sandbox.ModAPI.Ingame.IMyIntergridCommunicationSystem.GetBroadcastListeners) | 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. |
[bool IsEndpointReachable(long, [TransmissionDistance])](Sandbox.ModAPI.Ingame.IMyIntergridCommunicationSystem.IsEndpointReachable) | Determines if given endpoint is currently reachable. Similar to sending ICMP message. |
IMyBroadcastListener RegisterBroadcastListener(string) | 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. |
[void SendBroadcastMessage<TData>(string, TData, [TransmissionDistance])](Sandbox.ModAPI.Ingame.IMyIntergridCommunicationSystem.SendBroadcastMessage) | |
bool SendUnicastMessage<TData>(long, string, TData) |
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!