Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ChatComponent.c
Go to the documentation of this file.
1
class
SCR_ChatComponentClass
:
BaseChatComponentClass
2
{
3
}
4
5
class
SCR_ChatComponent : BaseChatComponent
6
{
7
//------------------------------------------------------------------------------------------------
10
bool
GetChannelState
(
BaseChatChannel
channelId)
11
{
12
ScriptedChatEntity
ent =
ScriptedChatEntity
.Cast(
GetGame
().GetChat());
13
if
(!ent)
14
return
false
;
15
16
return
GetChannelState
(ent.GetChannelId(channelId));
17
}
18
19
private
ScriptedChatEntity
m_ChatEntity
;
20
private
int
m_iRadioProtocolChannel;
21
22
//-----------------------------------------------------------------------------
23
override
void
OnNewMessage
(
string
msg,
int
channelId,
int
senderId)
24
{
25
SCR_ChatPanelManager
mgr =
SCR_ChatPanelManager
.
GetInstance
();
26
if
(!mgr)
27
return
;
28
29
mgr.
OnNewMessageGeneral
(msg, channelId, senderId);
30
}
31
32
//-----------------------------------------------------------------------------
33
override
void
OnNewPrivateMessage
(
string
msg,
int
senderId,
int
receiverId)
34
{
35
SCR_ChatPanelManager
mgr =
SCR_ChatPanelManager
.
GetInstance
();
36
if
(!mgr)
37
return
;
38
39
mgr.
OnNewMessagePrivate
(msg, senderId, receiverId);
40
}
41
42
//-----------------------------------------------------------------------------
43
override
void
ShowMessage
(
string
msg)
44
{
45
SCR_ChatPanelManager
mgr =
SCR_ChatPanelManager
.
GetInstance
();
46
if
(!mgr)
47
return
;
48
49
mgr.
OnNewMessage
(msg);
50
}
51
52
//------------------------------------------------------------------------------------------------
58
static
void
RadioProtocolMessage(
string
msg,
int
freq = -1)
59
{
60
SCR_ChatPanelManager mgr = SCR_ChatPanelManager.GetInstance();
61
if
(!mgr)
62
return
;
63
64
mgr.
OnNewMessageRadioProtocol
(msg, freq);
65
}
66
}
m_ChatEntity
ScriptedChatEntity m_ChatEntity
Definition
game.c:40
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseChatChannel
Definition
BaseChatChannel.c:13
BaseChatComponentClass
Definition
BaseChatComponent.c:13
SCR_ChatComponentClass
Definition
SCR_ChatComponent.c:2
SCR_ChatPanelManager
Definition
SCR_ChatPanelManager.c:13
SCR_ChatPanelManager::OnNewMessagePrivate
void OnNewMessagePrivate(string msg, int senderId, int receiverId)
Handling of new messages. Called by SCR_ChatComponent.
Definition
SCR_ChatPanelManager.c:226
SCR_ChatPanelManager::OnNewMessage
void OnNewMessage(string msg)
Definition
SCR_ChatPanelManager.c:271
SCR_ChatPanelManager::GetInstance
static SCR_ChatPanelManager GetInstance()
Returns SCR_ChatPanelManager instance.
Definition
SCR_ChatPanelManager.c:127
SCR_ChatPanelManager::OnNewMessageGeneral
void OnNewMessageGeneral(string msg, int channelId, int senderId)
Definition
SCR_ChatPanelManager.c:258
SCR_ChatPanelManager::OnNewMessageRadioProtocol
void OnNewMessageRadioProtocol(string msg, int frequency)
Definition
SCR_ChatPanelManager.c:248
ScriptedChatEntity
Definition
ScriptedChatEntity.c:10
OnNewMessage
void OnNewMessage(string msg, int channelId, int senderId)
Definition
SCR_ChatComponent.c:23
OnNewPrivateMessage
void OnNewPrivateMessage(string msg, int senderId, int receiverId)
Definition
SCR_ChatComponent.c:33
GetChannelState
proto external bool GetChannelState(int channelId)
ShowMessage
void ShowMessage(string msg)
Definition
SCR_ChatComponent.c:43
scripts
Game
Network
SCR_ChatComponent.c
Generated by
1.17.0