Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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
}
ScriptedChatEntity
Definition:
ScriptedChatEntity.c:9
OnNewMessage
override void OnNewMessage(string msg, int channelId, int senderId)
Definition:
SCR_ChatComponent.c:23
m_ChatEntity
private ScriptedChatEntity m_ChatEntity
Definition:
SCR_ChatComponent.c:19
GetGame
ArmaReforgerScripted GetGame()
Definition:
game.c:1424
SCR_ChatPanelManager
Definition:
SCR_ChatPanelManager.c:12
m_iRadioProtocolChannel
private int m_iRadioProtocolChannel
Definition:
SCR_ChatComponent.c:20
GetChannelState
SCR_ChatComponentClass BaseChatComponentClass GetChannelState(BaseChatChannel channelId)
Definition:
SCR_ChatComponent.c:10
SCR_ChatComponentClass
Definition:
SCR_ChatComponent.c:1
BaseChatComponentClass
Definition:
BaseChatComponent.c:12
OnNewPrivateMessage
override void OnNewPrivateMessage(string msg, int senderId, int receiverId)
Definition:
SCR_ChatComponent.c:33
ShowMessage
override void ShowMessage(string msg)
Definition:
SCR_ChatComponent.c:43
BaseChatChannel
Definition:
BaseChatChannel.c:12
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Network
SCR_ChatComponent.c
Generated by
1.8.17