Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PSNActivityComponent.c
Go to the documentation of this file.
2{
3}
4
5class SCR_PSNActivityComponent : SCR_BaseGameModeComponent
6{
7 [Attribute(defvalue: "Default value", desc: "Activity ID")]
8 protected string m_sActivityID;
9
10 [Attribute(defvalue: "Default value", desc: "Next Activity ID")]
11 protected string m_sNextActivityID;
12
13 //------------------------------------------------------------------------------------------------
14 override void OnGameModeStart()
15 {
16 GetGame().GetPlatformService().StartSingleplayerActivity(m_sActivityID);
17 }
18
19 //------------------------------------------------------------------------------------------------
21 {
22 if (data.GetEndReason() == EGameOverTypes.VICTORY)
23 {
24 GetGame().GetPlatformService().EndSingleplayerActivity(m_sActivityID, "completed");
25
26 if (!m_sNextActivityID.IsEmpty())
27 GetGame().GetPlatformService().ChangeAvailabilitySingleplayerActivity({m_sNextActivityID}, {});
28 }
29 else
30 {
31 GetGame().GetPlatformService().EndSingleplayerActivity(m_sActivityID, "failed");
32 }
33 }
34}
EGameOverTypes
ArmaReforgerScripted GetGame()
Definition game.c:1398
override void OnGameModeEnd(SCR_GameModeEndData data)
void SCR_BaseGameModeComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
override void OnGameModeStart()
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute