Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
ArmaReforgerScripted Interface Reference

Main game instance. More...

Inheritance diagram for ArmaReforgerScripted:
[legend]

Public Member Functions

void ~ArmaReforgerScripted ()
 
IEntity SpawnEntityPrefabEx (ResourceName prefab, bool randomizeEditableVariant, BaseWorld world=null, EntitySpawnParams params=null)
 Spawn entity or potential entity variant.
 
SCR_DataCollectorComponent GetDataCollector ()
 
SCR_ResourceGrid GetResourceGrid ()
 
SCR_ResourceSystemSubscriptionManager GetResourceSystemSubscriptionManager ()
 
void RegisterDataCollector (SCR_DataCollectorComponent instance)
 
void UnregisterBuildingDestructionManager (notnull SCR_BuildingDestructionManagerComponent manager)
 
void RegisterBuildingDestructionManager (notnull SCR_BuildingDestructionManagerComponent manager)
 
SCR_BuildingDestructionManagerComponent GetBuildingDestructionManager ()
 
SCR_LoadoutManager GetLoadoutManager ()
 Returns currently registered SCR_LoadoutManager if any is present.
 
void RegisterSoundManagerEntity (SCR_SoundManagerEntity instance)
 
SCR_SoundManagerEntity GetSoundManagerEntity ()
 
SCR_SettingsManager GetSettingsManager ()
 
SCR_ProfaneFilter GetProfanityFilter ()
 
SCR_SaveManagerCore GetSaveManager ()
 
bool GetHasKeyboard ()
 
ScriptCallQueue GetCallqueue ()
 
ScriptInvoker OnUserSettingsChangedInvoker ()
 
ScriptInvoker OnInputDeviceUserChangedInvoker ()
 
ScriptInvoker OnInputDeviceIsGamepadInvoker ()
 
ScriptInvoker OnWorldSimulatePhysicsInvoker ()
 
ScriptInvoker OnWindowResizeInvoker ()
 
override void OnCinematicStart ()
 
override void OnCinematicEnd ()
 
override void OnCinematicBlending (float blendFactor, vector cameraPosition)
 
bool GetFullKickReason (KickCauseCode kickCode, out KickCauseGroup2 groupInt, out int reasonInt, out string group, out string reason)
 Convert KickCauseCode into proper kick reason variables.
 
bool GetGameStarted ()
 
EGameFlags GetGameFlags ()
 
void SetGameFlags (EGameFlags newGameFlags, bool shouldInvoke)
 
bool AreGameFlagsObtained ()
 You should normally register to GetOnObtainedGameFlagsInvoker() but this is available for cases where registration is not possible.
 
bool AreGameFlagsSet (EGameFlags checkGameFlags)
 Can check for multiple bits at the same time.
 
ScriptInvoker GetOnObtainedGameFlagsInvoker ()
 
override TypeName GetMenuPreset ()
 Important for menu manager to work.
 
override LoadingAnim CreateLoadingAnim (WorkspaceWidget workspaceWidget)
 
override void OnAfterInit (BaseWorld world)
 Called after full initialization of Game instance.
 
override bool OnGameStart ()
 
override void OnGameEnd ()
 
override void OnUserSettingsChangedEvent ()
 
override void OnInputDeviceUserChangedEvent (EInputDeviceType oldDevice, EInputDeviceType newDevice)
 Event which is called when input device binded to user changed.
 
override void OnInputDeviceIsGamepadEvent (bool isGamepad)
 
override void OnWorldSimulatePhysics (float timeSlice)
 
override void OnWindowResize (int w, int h, bool windowed)
 
void AddActionListeners ()
 
void RemoveActionListeners ()
 
override void OnUpdate (BaseWorld world, float timeslice)
 
void ShutdownBackend ()
 
void SetHUDManager (SCR_HUDManagerComponent hud)
 
void LoadSave (string fileName)
 
void RegisterLoadoutManager (SCR_LoadoutManager instance)
 Registers provided loadout manager as the one used by the game.
 
void UnregisterLoadoutManager (SCR_LoadoutManager instance)
 Unregisters provided loadout manager.
 
SCR_HUDManagerComponent GetHUDManager ()
 
override string GetMissionName ()
 Called when DS downloads required addons and is ready to run a world FIXME: I'm not named properly!
 
override void PlayGameConfig (ResourceName sResource, string addonsList)
 
override void HostGameConfig ()
 
override Managed ReadGameConfig (string sResource)
 
override array< ResourceName > GetDefaultGameConfigs ()
 Get a list of all missions, featured, tutorial, recommended ones.
 
bool IsPlatformGameConsole ()
 
override void OnGamepadConnectionStatus (bool isConnected)
 Open gamepad disconnected warning dialog.
 
override void OnUserSignedOut ()
 Called whenever user is signed out while being in main menu game state.
 
- Public Member Functions inherited from ChimeraGame
proto external bool IsExperimentalBuild ()
 Is the game experimental build.
 
proto external ScriptWorldClock GetClock ()
 Returns the world clock.
 
proto external GameSignalsManager GetSignalsManager ()
 returns the global signals manager
 
proto external PlayerController GetPlayerController ()
 returns entity holding info about player
 
proto external PlayerManager GetPlayerManager ()
 PlayerManager holding info about players who joined MP. It always returns a valid instance.
 
proto external PerceptionManager GetPerceptionManager ()
 
proto external FactionManager GetFactionManager ()
 returns entity holding info about factions
 
proto external BaseChatEntity GetChat ()
 Returns the chat entity.
 
proto external CameraManager GetCameraManager ()
 Returns the camera manager.
 
proto external BaseGameMode GetGameMode ()
 Returns the game mode.
 
proto external MapEntity GetMapManager ()
 Returns the map manager entity.
 
proto external void SetViewDistance (float viewDistance)
 Sets view distance in meters (far clipping plane of cameras)
 
proto external float GetViewDistance ()
 Returns view distance in meters (far clipping plane of cameras)
 
proto external float GetMaximumViewDistance ()
 Returns absolute maximum view distance per platform as defined by global chimera settings.
 
proto external float GetMinimumViewDistance ()
 Returns absolute minimum view distance per platform as defined by global chimera settings.
 
proto external void SetGrassDistance (int grassDistance)
 Sets grass distance in meters.
 
proto external int GetGrassDistance ()
 Returns grass distance in meters.
 
proto external int GetMaximumGrassDistance ()
 Returns absolute maximum grass distance.
 
proto external int GetMinimumGrassDistance ()
 Returns absolute minimum grass distance.
 
proto external float GetViewDistanceServerLimit ()
 Returns the maximum view distance set by server (never relevant to client) set via ServerConfig.
 
proto external bool IsVONUIDisabledByServer ()
 Returns true if the VON UI is disabled by the server.
 
proto external bool IsVONDirectSpeechUIDisabledByServer ()
 Returns true if the VON direct speech UI is disabled by the server.
 
proto external bool GetVONCanTransmitCrossFaction ()
 Returns true if the VONCanTransmitCrossFaction is enabled by the server.
 
proto external MissionHeader GetMissionHeader ()
 Returns currently active mission or null if none.
 
proto external AIWorld GetAIWorld ()
 Returns the AI World.
 
proto external GameStatsApi GetStatsApi ()
 Returns analytics Api.
 
proto external ServerInfo GetServerInfo ()
 Returns game ServerInfo or null if not available.
 
proto external bool IsCrossPlayEnabled ()
 Tells if the cross-play is enabled based on curent platform and user settings.
 
proto external bool SetCrossPlay (bool enabled)
 Sets the cross-play option with respect to the platform specific requirements.
 
proto external void LogFPS (int msec)
 Enable or disable the logging of FPS.
 
proto external IEntity SpawnEntityPrefabLocal (notnull Resource templateResource, BaseWorld world=null, EntitySpawnParams params=null)
 Spawns a prefab which will exist only on local machine.
 
void OnCrossPlayChanged ()
 
void OnUserSignedOut ()
 Called whenever user is signed out while being in main menu game state.
 
void OnCinematicStart ()
 
void OnCinematicEnd ()
 
void OnCinematicBlending (float blendFactor, vector cameraPosition)
 

Static Public Member Functions

static void OnShowPlayerList ()
 
static void OnShowGroupMenu ()
 
static void OpenPauseMenu (bool hideParentMenu=true, bool fadeBackground=false)
 
static SCR_PlayerListMenu OpenPlayerList ()
 
static SCR_GroupMenu OpenGroupMenu ()
 
static SCR_2DPIPSightsComponent GetCurrentPIPSights ()
 
static bool IsScreenPointInPIPSights (vector screenPosition, SCR_2DPIPSightsComponent sightsComponent)
 Returns whether screen position is in located within the sights radius.
 
- Static Public Member Functions inherited from ChimeraGame
static proto bool CanSpawnEntityPrefab (notnull Resource templateResource, EntitySpawnParams params=null)
 Checks is a prefab can be spawned localy.
 

Public Attributes

ref ScriptInvoker m_OnMissionSetInvoker = new ScriptInvoker()
 
ref RplSessionErrorHandler m_SessionErrorHandler
 
bool m_bIsMainMenuOpen = false
 

Static Public Attributes

const string CONFIG_CORES_PATH = "Configs/Core/"
 

Protected Member Functions

override void OnMissionSet (MissionHeader mission)
 Called when a mission header is set (to both a valid one or to null as well)
 
override void OnKickedFromGame (KickCauseCode kickCode)
 Called after player was kicked from game back to main menu, providing reason for the kick.
 
void AddRejoinAttempt ()
 
override void OnWorldPostProcess (World world)
 
override void ShowErrorMessage (string msg)
 Push an error message to the error message stack.
 
void ShowNextErrorDialog ()
 If no error dialogue is currently shown try to pop it from the error stack and display it as an error dialogue.
 
void InvokeGameFlags ()
 
override ref Managed GetPlayerDataStats (int playerID)
 Called when the player data is requested.
 
void InsertNewScenario (ResourceName scenario, inout array< ResourceName > resources)
 Check that scenario isn't in list when adding new scenario.
 
void OnMissionSet (MissionHeader mission)
 Called when a mission header is set (to both a valid one or to null as well)
 
void OnKickedFromGame (KickCauseCode kickCode)
 Called after player was kicked from game back to main menu, providing reason for the kick.
 
void ShowErrorMessage (string msg)
 Shows dialog with a provided string.
 
ref Managed GetPlayerDataStats (int playerID)
 Called when the player data is requested.
 
string GetMissionName ()
 Called when DS downloads required addons and is ready to run a world FIXME: I'm not named properly!
 

Static Protected Member Functions

static void OnMenuOpen ()
 
static bool CheckMissionHeader (MissionWorkshopItem mission)
 

Protected Attributes

EGameFlags m_eGameFlags
 Game Flags specific for current game mode, or for the game mode which is going to be played when it is a host/server side.
 
bool m_bAreGameFlagsObtained
 
ref ScriptInvoker Event_OnObtainedGameFlags = new ScriptInvoker()
 
SCR_HUDManagerComponent m_HUDManager
 
ScriptedChatEntity m_ChatEntity
 
ref SCR_GameCoresManager m_CoresManager
 
ref SCR_SettingsManager m_SettingsManager
 
ref SCR_ProfaneFilter m_ProfanityFilter
 
SCR_SaveManagerCore m_SaveManagerCore
 
SCR_BuildingDestructionManagerComponent m_BuildingDestructionManager
 
SCR_SpawnerAIGroupManagerComponent m_SpawnerAIGroupManager
 
bool m_bHasKeyboard
 
SCR_LoadoutManager m_pLoadoutManager
 Object responsible for managing and providing game modes with list of available loadouts.
 
SCR_DataCollectorComponent m_DataCollectorComponent
 Object responsible for tracking and connecting to the database for Career Profile.
 
SCR_SoundManagerEntity m_SoundManagerEntity
 Object responsible for managing sounds trigged in script.
 
ref SCR_Stack< SCR_GameErrorMessagem_aErrorStack = new SCR_Stack<SCR_GameErrorMessage>()
 Stack of queued error messages. All messages are popped one by one as user closes them and only in the main menu.
 
ref ScriptInvoker m_OnChangeUserSettingsInvoker = new ScriptInvoker()
 
ref ScriptInvoker m_OnInputDeviceUserChangedInvoker = new ScriptInvoker()
 
ref ScriptInvoker m_OnInputDeviceIsGamepadInvoker = new ScriptInvoker()
 
ref ScriptInvoker m_OnWorldSimulatePhysicsInvoker = new ScriptInvoker()
 
ref ScriptInvoker< int, int, bool > m_OnWindowResizeInvoker = new ScriptInvoker()
 
ref ScriptCallQueue m_Callqueue = new ScriptCallQueue()
 
ref SCR_ResourceGrid m_ResourceGrid
 
ref SCR_ResourceSystemSubscriptionManager m_ResourceSystemSubscriptionManager
 

Detailed Description

Main game instance.

Created when the game starts (not when a world starts!) and persists until the game is closed.

Constructor & Destructor Documentation

◆ ~ArmaReforgerScripted()

void ArmaReforgerScripted.~ArmaReforgerScripted ( )

Member Function Documentation

◆ AddActionListeners()

void ArmaReforgerScripted.AddActionListeners ( )

◆ AddRejoinAttempt()

void ArmaReforgerScripted.AddRejoinAttempt ( )
protected

◆ AreGameFlagsObtained()

bool ArmaReforgerScripted.AreGameFlagsObtained ( )

You should normally register to GetOnObtainedGameFlagsInvoker() but this is available for cases where registration is not possible.

See also
GetOnObtainedGameFlagsInvoker()
Returns

◆ AreGameFlagsSet()

bool ArmaReforgerScripted.AreGameFlagsSet ( EGameFlags  checkGameFlags)

Can check for multiple bits at the same time.

Parameters
[in]checkGameFlags
Returns

◆ CheckMissionHeader()

static bool ArmaReforgerScripted.CheckMissionHeader ( MissionWorkshopItem  mission)
staticprotected
Parameters
[in]missioncannot be null
Returns

◆ CreateLoadingAnim()

override LoadingAnim ArmaReforgerScripted.CreateLoadingAnim ( WorkspaceWidget  workspaceWidget)

◆ GetBuildingDestructionManager()

SCR_BuildingDestructionManagerComponent ArmaReforgerScripted.GetBuildingDestructionManager ( )
Returns

◆ GetCallqueue()

ScriptCallQueue ArmaReforgerScripted.GetCallqueue ( )

◆ GetCurrentPIPSights()

static SCR_2DPIPSightsComponent ArmaReforgerScripted.GetCurrentPIPSights ( )
static
Returns
current local player picture in picture sights, if any.

◆ GetDataCollector()

SCR_DataCollectorComponent ArmaReforgerScripted.GetDataCollector ( )
Returns

◆ GetDefaultGameConfigs()

override array< ResourceName > ArmaReforgerScripted.GetDefaultGameConfigs ( )

Get a list of all missions, featured, tutorial, recommended ones.

Returns
mission resources list

◆ GetFullKickReason()

bool ArmaReforgerScripted.GetFullKickReason ( KickCauseCode  kickCode,
out KickCauseGroup2  groupInt,
out int  reasonInt,
out string  group,
out string  reason 
)

Convert KickCauseCode into proper kick reason variables.

Parameters
[in]kickCodeKick code to convert
[out]groupInt
[out]reasonInt
[out]group
[out]reason
Returns
Will return true if proper kick reason found

◆ GetGameFlags()

EGameFlags ArmaReforgerScripted.GetGameFlags ( )
Returns

◆ GetGameStarted()

bool ArmaReforgerScripted.GetGameStarted ( )
Returns

◆ GetHasKeyboard()

bool ArmaReforgerScripted.GetHasKeyboard ( )
Returns

◆ GetHUDManager()

SCR_HUDManagerComponent ArmaReforgerScripted.GetHUDManager ( )
Returns

◆ GetLoadoutManager()

SCR_LoadoutManager ArmaReforgerScripted.GetLoadoutManager ( )

Returns currently registered SCR_LoadoutManager if any is present.

Returns
Reference to loadout manager or null if none.

◆ GetMenuPreset()

override TypeName ArmaReforgerScripted.GetMenuPreset ( )

Important for menu manager to work.

Specify presets in ChimeraMenuPreset enum and add them in chimeraMenus.conf configuration file.

Returns
ChimeraMenuPreset typename

◆ GetMissionName()

override string ArmaReforgerScripted.GetMissionName ( )

Called when DS downloads required addons and is ready to run a world FIXME: I'm not named properly!

Implements ChimeraGame.

◆ GetOnObtainedGameFlagsInvoker()

ScriptInvoker ArmaReforgerScripted.GetOnObtainedGameFlagsInvoker ( )
Returns

◆ GetPlayerDataStats()

override ref Managed ArmaReforgerScripted.GetPlayerDataStats ( int  playerID)
protected

Called when the player data is requested.

Implements ChimeraGame.

◆ GetProfanityFilter()

SCR_ProfaneFilter ArmaReforgerScripted.GetProfanityFilter ( )
Returns

◆ GetResourceGrid()

SCR_ResourceGrid ArmaReforgerScripted.GetResourceGrid ( )
Returns

◆ GetResourceSystemSubscriptionManager()

SCR_ResourceSystemSubscriptionManager ArmaReforgerScripted.GetResourceSystemSubscriptionManager ( )
Returns

◆ GetSaveManager()

SCR_SaveManagerCore ArmaReforgerScripted.GetSaveManager ( )
Returns

◆ GetSettingsManager()

SCR_SettingsManager ArmaReforgerScripted.GetSettingsManager ( )
Returns

◆ GetSoundManagerEntity()

SCR_SoundManagerEntity ArmaReforgerScripted.GetSoundManagerEntity ( )
Returns
registered SCR_SoundManagerEntity

◆ HostGameConfig()

override void ArmaReforgerScripted.HostGameConfig ( )

◆ InsertNewScenario()

void ArmaReforgerScripted.InsertNewScenario ( ResourceName  scenario,
inout array< ResourceName >  resources 
)
protected

Check that scenario isn't in list when adding new scenario.

Parameters
[in]scenario
[in,out]resources

◆ InvokeGameFlags()

void ArmaReforgerScripted.InvokeGameFlags ( )
protected

◆ IsPlatformGameConsole()

bool ArmaReforgerScripted.IsPlatformGameConsole ( )
Returns
true if current client platform is console

◆ IsScreenPointInPIPSights()

static bool ArmaReforgerScripted.IsScreenPointInPIPSights ( vector  screenPosition,
SCR_2DPIPSightsComponent  sightsComponent 
)
static

Returns whether screen position is in located within the sights radius.

Parameters
[in]screenPositionPoint on screen
[in]sightsComponentPicture in picture sights to use as reference
Returns
Returns true if point is in picture in picture sights, false otherwise.

◆ LoadSave()

void ArmaReforgerScripted.LoadSave ( string  fileName)
Parameters
[in]fileName

◆ OnAfterInit()

override void ArmaReforgerScripted.OnAfterInit ( BaseWorld  world)

Called after full initialization of Game instance.

Parameters
[in]world

◆ OnCinematicBlending()

override void ArmaReforgerScripted.OnCinematicBlending ( float  blendFactor,
vector  cameraPosition 
)

Implements ChimeraGame.

◆ OnCinematicEnd()

override void ArmaReforgerScripted.OnCinematicEnd ( )

Implements ChimeraGame.

◆ OnCinematicStart()

override void ArmaReforgerScripted.OnCinematicStart ( )

Implements ChimeraGame.

◆ OnGameEnd()

override void ArmaReforgerScripted.OnGameEnd ( )

◆ OnGamepadConnectionStatus()

override void ArmaReforgerScripted.OnGamepadConnectionStatus ( bool  isConnected)

Open gamepad disconnected warning dialog.

Parameters
[in]isConnectedis false on disconnection, true on re-connection.

◆ OnGameStart()

override bool ArmaReforgerScripted.OnGameStart ( )

◆ OnInputDeviceIsGamepadEvent()

override void ArmaReforgerScripted.OnInputDeviceIsGamepadEvent ( bool  isGamepad)

◆ OnInputDeviceIsGamepadInvoker()

ScriptInvoker ArmaReforgerScripted.OnInputDeviceIsGamepadInvoker ( )
Returns

◆ OnInputDeviceUserChangedEvent()

override void ArmaReforgerScripted.OnInputDeviceUserChangedEvent ( EInputDeviceType  oldDevice,
EInputDeviceType  newDevice 
)

Event which is called when input device binded to user changed.

Parameters
[in]oldDevice
[in]newDevice

◆ OnInputDeviceUserChangedInvoker()

ScriptInvoker ArmaReforgerScripted.OnInputDeviceUserChangedInvoker ( )
Returns

◆ OnKickedFromGame()

override void ArmaReforgerScripted.OnKickedFromGame ( KickCauseCode  kickCode)
protected

Called after player was kicked from game back to main menu, providing reason for the kick.

Implements ChimeraGame.

◆ OnMenuOpen()

static void ArmaReforgerScripted.OnMenuOpen ( )
staticprotected

◆ OnMissionSet()

override void ArmaReforgerScripted.OnMissionSet ( MissionHeader  mission)
protected

Called when a mission header is set (to both a valid one or to null as well)

Parameters
missioncan be passed in as null when mission is cleared, make sure to nullptr check!

Implements ChimeraGame.

◆ OnShowGroupMenu()

static void ArmaReforgerScripted.OnShowGroupMenu ( )
static

◆ OnShowPlayerList()

static void ArmaReforgerScripted.OnShowPlayerList ( )
static

◆ OnUpdate()

override void ArmaReforgerScripted.OnUpdate ( BaseWorld  world,
float  timeslice 
)

◆ OnUserSettingsChangedEvent()

override void ArmaReforgerScripted.OnUserSettingsChangedEvent ( )

◆ OnUserSettingsChangedInvoker()

ScriptInvoker ArmaReforgerScripted.OnUserSettingsChangedInvoker ( )
Returns

◆ OnUserSignedOut()

override void ArmaReforgerScripted.OnUserSignedOut ( )

Called whenever user is signed out while being in main menu game state.

Implements ChimeraGame.

◆ OnWindowResize()

override void ArmaReforgerScripted.OnWindowResize ( int  w,
int  h,
bool  windowed 
)

◆ OnWindowResizeInvoker()

ScriptInvoker ArmaReforgerScripted.OnWindowResizeInvoker ( )
Returns

◆ OnWorldPostProcess()

override void ArmaReforgerScripted.OnWorldPostProcess ( World  world)
protected

◆ OnWorldSimulatePhysics()

override void ArmaReforgerScripted.OnWorldSimulatePhysics ( float  timeSlice)

◆ OnWorldSimulatePhysicsInvoker()

ScriptInvoker ArmaReforgerScripted.OnWorldSimulatePhysicsInvoker ( )
Returns

◆ OpenGroupMenu()

static SCR_GroupMenu ArmaReforgerScripted.OpenGroupMenu ( )
static
Returns

◆ OpenPauseMenu()

static void ArmaReforgerScripted.OpenPauseMenu ( bool  hideParentMenu = true,
bool  fadeBackground = false 
)
static
Parameters
[in]hideParentMenu
[in]fadeBackground

◆ OpenPlayerList()

static SCR_PlayerListMenu ArmaReforgerScripted.OpenPlayerList ( )
static
Returns

◆ PlayGameConfig()

override void ArmaReforgerScripted.PlayGameConfig ( ResourceName  sResource,
string  addonsList 
)

◆ ReadGameConfig()

override Managed ArmaReforgerScripted.ReadGameConfig ( string  sResource)
Parameters
[in]sResource

◆ RegisterBuildingDestructionManager()

void ArmaReforgerScripted.RegisterBuildingDestructionManager ( notnull SCR_BuildingDestructionManagerComponent  manager)
Parameters
[in]manager

◆ RegisterDataCollector()

void ArmaReforgerScripted.RegisterDataCollector ( SCR_DataCollectorComponent  instance)
Parameters
[in]instance

◆ RegisterLoadoutManager()

void ArmaReforgerScripted.RegisterLoadoutManager ( SCR_LoadoutManager  instance)

Registers provided loadout manager as the one used by the game.

Multiple registrations are not supported and will log an error.

Parameters
[in]instanceInstance to register.

◆ RegisterSoundManagerEntity()

void ArmaReforgerScripted.RegisterSoundManagerEntity ( SCR_SoundManagerEntity  instance)
Parameters
[in]instance

◆ RemoveActionListeners()

void ArmaReforgerScripted.RemoveActionListeners ( )

◆ SetGameFlags()

void ArmaReforgerScripted.SetGameFlags ( EGameFlags  newGameFlags,
bool  shouldInvoke 
)
Parameters
[in]newGameFlags
[in]shouldInvoke

◆ SetHUDManager()

void ArmaReforgerScripted.SetHUDManager ( SCR_HUDManagerComponent  hud)
Parameters
[in]hud

◆ ShowErrorMessage()

override void ArmaReforgerScripted.ShowErrorMessage ( string  msg)
protected

Push an error message to the error message stack.

Parameters
[in]msg

Implements ChimeraGame.

◆ ShowNextErrorDialog()

void ArmaReforgerScripted.ShowNextErrorDialog ( )
protected

If no error dialogue is currently shown try to pop it from the error stack and display it as an error dialogue.

◆ ShutdownBackend()

void ArmaReforgerScripted.ShutdownBackend ( )

◆ SpawnEntityPrefabEx()

IEntity ArmaReforgerScripted.SpawnEntityPrefabEx ( ResourceName  prefab,
bool  randomizeEditableVariant,
BaseWorld  world = null,
EntitySpawnParams  params = null 
)

Spawn entity or potential entity variant.

Parameters
[in]prefabEntity prefab to spawn
[in]randomizeEditableVariantIf true and the entity has the SCR_EditableEntityComponent, then it will try and get a random variant if it has any assigned (More performance heavy)
[in]world
[in]paramsEntity spawn params
Returns
Spawned Entity

◆ UnregisterBuildingDestructionManager()

void ArmaReforgerScripted.UnregisterBuildingDestructionManager ( notnull SCR_BuildingDestructionManagerComponent  manager)
Parameters
[in]manager

◆ UnregisterLoadoutManager()

void ArmaReforgerScripted.UnregisterLoadoutManager ( SCR_LoadoutManager  instance)

Unregisters provided loadout manager.

Wrong unregistrations will log an error.

Parameters
[in]instanceInstance to unregister.

Member Data Documentation

◆ CONFIG_CORES_PATH

const string ArmaReforgerScripted.CONFIG_CORES_PATH = "Configs/Core/"
static

◆ Event_OnObtainedGameFlags

ref ScriptInvoker ArmaReforgerScripted.Event_OnObtainedGameFlags = new ScriptInvoker()
protected

◆ m_aErrorStack

ref SCR_Stack<SCR_GameErrorMessage> ArmaReforgerScripted.m_aErrorStack = new SCR_Stack<SCR_GameErrorMessage>()
protected

Stack of queued error messages. All messages are popped one by one as user closes them and only in the main menu.

◆ m_bAreGameFlagsObtained

bool ArmaReforgerScripted.m_bAreGameFlagsObtained
protected

◆ m_bHasKeyboard

bool ArmaReforgerScripted.m_bHasKeyboard
protected

◆ m_bIsMainMenuOpen

bool ArmaReforgerScripted.m_bIsMainMenuOpen = false

◆ m_BuildingDestructionManager

SCR_BuildingDestructionManagerComponent ArmaReforgerScripted.m_BuildingDestructionManager
protected

◆ m_Callqueue

ref ScriptCallQueue ArmaReforgerScripted.m_Callqueue = new ScriptCallQueue()
protected

◆ m_ChatEntity

ScriptedChatEntity ArmaReforgerScripted.m_ChatEntity
protected

◆ m_CoresManager

ref SCR_GameCoresManager ArmaReforgerScripted.m_CoresManager
protected

◆ m_DataCollectorComponent

SCR_DataCollectorComponent ArmaReforgerScripted.m_DataCollectorComponent
protected

Object responsible for tracking and connecting to the database for Career Profile.

◆ m_eGameFlags

EGameFlags ArmaReforgerScripted.m_eGameFlags
protected

Game Flags specific for current game mode, or for the game mode which is going to be played when it is a host/server side.

◆ m_HUDManager

SCR_HUDManagerComponent ArmaReforgerScripted.m_HUDManager
protected

◆ m_OnChangeUserSettingsInvoker

ref ScriptInvoker ArmaReforgerScripted.m_OnChangeUserSettingsInvoker = new ScriptInvoker()
protected

◆ m_OnInputDeviceIsGamepadInvoker

ref ScriptInvoker ArmaReforgerScripted.m_OnInputDeviceIsGamepadInvoker = new ScriptInvoker()
protected

◆ m_OnInputDeviceUserChangedInvoker

ref ScriptInvoker ArmaReforgerScripted.m_OnInputDeviceUserChangedInvoker = new ScriptInvoker()
protected

◆ m_OnMissionSetInvoker

ref ScriptInvoker ArmaReforgerScripted.m_OnMissionSetInvoker = new ScriptInvoker()

◆ m_OnWindowResizeInvoker

ref ScriptInvoker<int, int, bool> ArmaReforgerScripted.m_OnWindowResizeInvoker = new ScriptInvoker()
protected

◆ m_OnWorldSimulatePhysicsInvoker

ref ScriptInvoker ArmaReforgerScripted.m_OnWorldSimulatePhysicsInvoker = new ScriptInvoker()
protected

◆ m_pLoadoutManager

SCR_LoadoutManager ArmaReforgerScripted.m_pLoadoutManager
protected

Object responsible for managing and providing game modes with list of available loadouts.

◆ m_ProfanityFilter

ref SCR_ProfaneFilter ArmaReforgerScripted.m_ProfanityFilter
protected

◆ m_ResourceGrid

ref SCR_ResourceGrid ArmaReforgerScripted.m_ResourceGrid
protected

◆ m_ResourceSystemSubscriptionManager

ref SCR_ResourceSystemSubscriptionManager ArmaReforgerScripted.m_ResourceSystemSubscriptionManager
protected

◆ m_SaveManagerCore

SCR_SaveManagerCore ArmaReforgerScripted.m_SaveManagerCore
protected

◆ m_SessionErrorHandler

ref RplSessionErrorHandler ArmaReforgerScripted.m_SessionErrorHandler

◆ m_SettingsManager

ref SCR_SettingsManager ArmaReforgerScripted.m_SettingsManager
protected

◆ m_SoundManagerEntity

SCR_SoundManagerEntity ArmaReforgerScripted.m_SoundManagerEntity
protected

Object responsible for managing sounds trigged in script.

◆ m_SpawnerAIGroupManager

SCR_SpawnerAIGroupManagerComponent ArmaReforgerScripted.m_SpawnerAIGroupManager
protected

The documentation for this interface was generated from the following file: