Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
ScriptedChatEntity.c
Go to the documentation of this file.
1 // Current state of the chat:
2 // - There is no reliable way how to know that messagebox is visible
3 // This is a problem with browsing history
4 
6 {
7 };
8 
9 class ScriptedChatEntity : BaseChatEntity
10 {
11  //------------------------------------------------------------------------------------------------
12  void ScriptedChatEntity(IEntitySource src, IEntity parent)
13  {
14  SetEventMask(EntityEvent.INIT | EntityEvent.FRAME);
15  }
16 
17 
18  //------------------------------------------------------------------------------------------------
19  int GetChannelId(BaseChatChannel channel)
20  {
21  int count = GetChannelsCount();
22 
23  for (int i = 0; i < count; i++)
24  {
25  if (GetChannel(i) == channel)
26  return i;
27  }
28 
29  return -1;
30  }
31 
32 };
GetChannel
proto external BaseChatChannel GetChannel(int channelId)
ScriptedChatEntity
Definition: ScriptedChatEntity.c:9
ScriptedChatEntityClass
Definition: ScriptedChatEntity.c:5
GetChannelsCount
BaseChatEntityClass GenericEntityClass GetChannelsCount()
BaseChatEntityClass
Definition: BaseChatEntity.c:12
BaseChatChannel
Definition: BaseChatChannel.c:12