Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_NightModeGameModeComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_NightModeGameModeComponentClass
 

Functions

SCR_NightModeGameModeComponentClass SCR_BaseGameModeComponentClass Attribute ("0", desc:"Set true if you want the GM to be able to set global nightmode. Do not change in runtime", category:"Settings")
 
bool IsLocalEditorNightModeEnabled ()
 
protected void ToggleLocalNightModeShortcut ()
 
void EnableLocalEditorNightMode (bool enable, bool playSound=true)
 
bool IsGlobalNightModeAllowed ()
 
bool IsGlobalNightModeEnabled ()
 
void EnableGlobalNightMode (bool enable, int nightModeChangerPlayerID=-1)
 
protected void RPC_EnableGlobalNightMode (bool enable, int nightModeChangerPlayerID)
 
bool IsNightModeEnabled ()
 
bool CanEnableNightMode ()
 
protected void EnableNightMode (bool enable)
 
protected void OnEditorOpened ()
 
protected void OnEditorClosed ()
 
protected void OnEditorLimitedChanged (bool isLimited)
 
protected void UpdatePreviewingTimeOrWeather ()
 
protected void OnWeatherStatePreview (bool preview, string stateName)
 
protected void OnWindPreview (bool preview, float windSpeed=-1, float windAngleDegrees=-1)
 
protected void OnDateTimePreview (bool preview, int year=-1, int month=-1, int day=-1, float timeOfTheDay=-1)
 
ScriptInvokerBool GetOnLocalEditorNightModeEnabledChanged ()
 
ScriptInvokerBool GetOnGlobalNightModeEnabledChanged ()
 
ScriptInvokerBool GetOnNightModeEnabledChanged ()
 
protected void OnEditorManagerCreated (SCR_EditorManagerEntity editorManager)
 
override void EOnInit (IEntity owner)
 Initialise this component with data from FactionsManager. More...
 
override void OnPostInit (IEntity owner)
 Editable Mine. More...
 
override void OnDelete (IEntity owner)
 
override bool RplSave (ScriptBitWriter writer)
 
override bool RplLoad (ScriptBitReader reader)
 

Function Documentation

◆ Attribute()

SCR_NightModeGameModeComponentClass SCR_BaseGameModeComponentClass Attribute ( "0"  ,
desc:"Set true if you want the GM to be able to set global nightmode. Do not change in runtime"  ,
category:"Settings"   
)

Definition at line 8 of file SCR_NightModeGameModeComponent.c.

◆ CanEnableNightMode()

bool CanEnableNightMode ( )
Returns
true if general night mode can be enabled

Definition at line 192 of file SCR_NightModeGameModeComponent.c.

◆ EnableGlobalNightMode()

void EnableGlobalNightMode ( bool  enable,
int  nightModeChangerPlayerID = -1 
)

Enable global night mode Note that enable might fail if the conditions are not met

Parameters
[in]enableTo enable or not
[in]nightModeChangerPlayerIDIf a player ID is given then a notification is sent to all players if global night mode is enabled/disabled

Definition at line 142 of file SCR_NightModeGameModeComponent.c.

◆ EnableLocalEditorNightMode()

void EnableLocalEditorNightMode ( bool  enable,
bool  playSound = true 
)

Enable local editor night mode Note that enable might fail if the conditions are not met

Parameters
[in]enableTo enable or not
[in]playSoundTo play a sound or not

Definition at line 102 of file SCR_NightModeGameModeComponent.c.

◆ EnableNightMode()

protected void EnableNightMode ( bool  enable)

Definition at line 199 of file SCR_NightModeGameModeComponent.c.

◆ GetOnGlobalNightModeEnabledChanged()

ScriptInvokerBool GetOnGlobalNightModeEnabledChanged ( )
Returns
ScriptInvoker On Global night mode enabled changed

Definition at line 348 of file SCR_NightModeGameModeComponent.c.

◆ GetOnLocalEditorNightModeEnabledChanged()

ScriptInvokerBool GetOnLocalEditorNightModeEnabledChanged ( )
Returns
ScriptInvoker On Local editor night mode enabled changed

Definition at line 338 of file SCR_NightModeGameModeComponent.c.

◆ GetOnNightModeEnabledChanged()

ScriptInvokerBool GetOnNightModeEnabledChanged ( )
Returns
ScriptInvoker On Local Editor or Global night mode enabled changed

Definition at line 358 of file SCR_NightModeGameModeComponent.c.

◆ IsGlobalNightModeAllowed()

bool IsGlobalNightModeAllowed ( )
Returns
true if scenario allows for global night mode to be enabled

Definition at line 125 of file SCR_NightModeGameModeComponent.c.

◆ IsGlobalNightModeEnabled()

bool IsGlobalNightModeEnabled ( )
Returns
true if global night mode is enabled for all players

Definition at line 132 of file SCR_NightModeGameModeComponent.c.

◆ IsLocalEditorNightModeEnabled()

bool IsLocalEditorNightModeEnabled ( )
Returns
true if local editor night mode is enabled

Definition at line 86 of file SCR_NightModeGameModeComponent.c.

◆ IsNightModeEnabled()

bool IsNightModeEnabled ( )
Returns
true if local editor night mode and/or global night mode is enabled

Definition at line 185 of file SCR_NightModeGameModeComponent.c.

◆ OnDateTimePreview()

protected void OnDateTimePreview ( bool  preview,
int  year = -1,
int  month = -1,
int  day = -1,
float  timeOfTheDay = -1 
)

Definition at line 331 of file SCR_NightModeGameModeComponent.c.

◆ OnEditorClosed()

protected void OnEditorClosed ( )

Definition at line 253 of file SCR_NightModeGameModeComponent.c.

◆ OnEditorLimitedChanged()

protected void OnEditorLimitedChanged ( bool  isLimited)

Definition at line 266 of file SCR_NightModeGameModeComponent.c.

◆ OnEditorManagerCreated()

protected void OnEditorManagerCreated ( SCR_EditorManagerEntity  editorManager)

Definition at line 367 of file SCR_NightModeGameModeComponent.c.

◆ OnEditorOpened()

protected void OnEditorOpened ( )

Definition at line 244 of file SCR_NightModeGameModeComponent.c.

◆ OnWeatherStatePreview()

protected void OnWeatherStatePreview ( bool  preview,
string  stateName 
)

Definition at line 319 of file SCR_NightModeGameModeComponent.c.

◆ OnWindPreview()

protected void OnWindPreview ( bool  preview,
float  windSpeed = -1,
float  windAngleDegrees = -1 
)

Definition at line 325 of file SCR_NightModeGameModeComponent.c.

◆ RPC_EnableGlobalNightMode()

protected void RPC_EnableGlobalNightMode ( bool  enable,
int  nightModeChangerPlayerID 
)

Definition at line 158 of file SCR_NightModeGameModeComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader  reader)

Definition at line 485 of file SCR_NightModeGameModeComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter  writer)

Definition at line 476 of file SCR_NightModeGameModeComponent.c.

◆ ToggleLocalNightModeShortcut()

protected void ToggleLocalNightModeShortcut ( )

Definition at line 92 of file SCR_NightModeGameModeComponent.c.

◆ UpdatePreviewingTimeOrWeather()

protected void UpdatePreviewingTimeOrWeather ( )

Definition at line 274 of file SCR_NightModeGameModeComponent.c.