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_ServerInfoEditorComponent.c
Go to the documentation of this file.
1
[
ComponentEditorProps
(
category
:
"GameScripted/Editor"
, description:
"Transmitting info about dedicated server. Works only with SCR_EditorBaseEntity!"
, icon:
"WBData/ComponentEditorProps/componentEditor.png"
)]
2
class
SCR_ServerInfoEditorComponentClass
:
SCR_BaseEditorComponentClass
3
{
4
};
5
class
SCR_ServerInfoEditorComponent
:
SCR_BaseEditorComponent
6
{
7
[
Attribute
(
"1"
,
desc
:
"How often is info about serevr broadcasted."
)]
8
protected
float
m_fInterval
;
9
10
protected
ref
ScriptInvoker
m_OnReceive
=
new
ScriptInvoker
();
11
12
ScriptInvoker
GetOnReceive
()
13
{
14
return
m_OnReceive
;
15
}
16
17
protected
void
Transmit
()
18
{
19
int
fps =
System
.GetFPS();
20
int
memoryKB =
System
.MemoryAllocationKB();
21
int
tickCount =
System
.GetTickCount();
22
23
Rpc
(
Receive
, fps, memoryKB, tickCount);
24
}
25
[
RplRpc
(
RplChannel
.Unreliable,
RplRcver
.Owner)]
26
protected
void
Receive
(
int
fps,
int
memoryKB,
int
tickCount)
27
{
28
m_OnReceive
.Invoke(fps, memoryKB, tickCount);
29
}
30
31
override
protected
void
EOnEditorActivateServer
()
32
{
33
GetGame
().GetCallqueue().CallLater(
Transmit
,
m_fInterval
* 1000,
true
);
34
}
35
override
protected
void
EOnEditorDeactivateServer
()
36
{
37
GetGame
().GetCallqueue().Remove(
Transmit
);
38
}
39
};
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
ComponentEditorProps
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
Definition
SCR_AIGroupUtilityComponent.c:12
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
GenericComponent::Rpc
void Rpc(func method, void p0=NULL, void p1=NULL, void p2=NULL, void p3=NULL, void p4=NULL, void p5=NULL, void p6=NULL, void p7=NULL)
SCR_BaseEditorComponentClass
Definition
SCR_BaseEditorComponent.c:3
SCR_BaseEditorComponent::SCR_BaseEditorComponent
void SCR_BaseEditorComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_BaseEditorComponent.c:683
SCR_ServerInfoEditorComponentClass
Definition
SCR_ServerInfoEditorComponent.c:3
SCR_ServerInfoEditorComponent
Definition
SCR_ServerInfoEditorComponent.c:6
SCR_ServerInfoEditorComponent::EOnEditorDeactivateServer
void EOnEditorDeactivateServer()
Definition
SCR_ServerInfoEditorComponent.c:35
SCR_ServerInfoEditorComponent::m_fInterval
float m_fInterval
Definition
SCR_ServerInfoEditorComponent.c:8
SCR_ServerInfoEditorComponent::GetOnReceive
ScriptInvoker GetOnReceive()
Definition
SCR_ServerInfoEditorComponent.c:12
SCR_ServerInfoEditorComponent::Receive
void Receive(int fps, int memoryKB, int tickCount)
Definition
SCR_ServerInfoEditorComponent.c:26
SCR_ServerInfoEditorComponent::EOnEditorActivateServer
void EOnEditorActivateServer()
Definition
SCR_ServerInfoEditorComponent.c:31
SCR_ServerInfoEditorComponent::Transmit
void Transmit()
Definition
SCR_ServerInfoEditorComponent.c:17
SCR_ServerInfoEditorComponent::m_OnReceive
ref ScriptInvoker m_OnReceive
Definition
SCR_ServerInfoEditorComponent.c:10
System
Definition
System.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
RplRpc
void RplRpc(RplChannel channel, RplRcver rcver, RplCondition condition=RplCondition.None, string customConditionName="")
Definition
EnNetwork.c:95
RplRcver
RplRcver
Definition
RplRcver.c:59
RplChannel
RplChannel
Communication channel. Reliable is guaranteed to be delivered. Unreliable not.
Definition
RplChannel.c:14
ScriptInvoker
ScriptInvokerBase< func > ScriptInvoker
Definition
tools.c:134
scripts
Game
Editor
Components
Editor
SCR_ServerInfoEditorComponent.c
Generated by
1.17.0