DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Subscribe()

void PluginBase::Subscribe ( MessageReceiverBase receiver,
int index )
inlineprivate

Subscribes an object to listen to messages on a channel provided in the 'index' parameter.

См. определение в файле PluginMessageManager.c строка 109

110 {
111 if(index > channelsUsed) //this is used to speed up the unsubscribeAll method, instead of all channels, we sweep just those in usage
112 {
113 channelsUsed = index;
114 }
115 array<ref MessageReceiverBase> chan = channelList[index];
116 if( chan.Find(receiver) >= 0 ) return;
117 chan.Insert(receiver);
118 }
ref array< ref MessageReceiverBase > channelList[NUM_OF_CHANNELS]
Определения PluginMessageManager.c:7
int channelsUsed
Определения PluginMessageManager.c:6

Перекрестные ссылки channelList и channelsUsed.