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

Go to the source code of this file.

Data Structures

class  SCR_ArsenalPlayerLoadout
 
class  SCR_ArsenalManagerComponentClass
 

Typedefs

typedef func SCR_ArsenalManagerComponent_OnPlayerLoadoutChanged
 

Functions

class SCR_ArsenalPlayerLoadout SCR_ArsenalManagerComponent_OnPlayerLoadoutChanged (int playerId, bool hasValidLoadout)
 
SCR_ArsenalSaveTypeInfoHolder GetArsenalSaveTypeInfoHolder ()
 
SCR_LoadoutSaveBlackListHolder GetLoadoutSaveBlackListHolder ()
 
protected void OnPlayerChangedFaction (int playerId, SCR_PlayerFactionAffiliationComponent playerFactionAffiliation, Faction faction)
 
void SetLoadoutBlackListActiveStates (notnull array< bool > orderedActiveStates, bool clearExistingLoadouts, int editorPlayerIdClearedLoadout=-1)
 
protected void RPC_OnPlayerLoadoutCleared (int playerIdClearedLoadout)
 
bool GetLocalPlayerLoadoutAvailable ()
 
ScriptInvokerBase< SCR_ArsenalManagerComponent_OnPlayerLoadoutChangedGetOnLoadoutUpdated ()
 
bool GetPlayerArsenalLoadout (string playerUID, out SCR_ArsenalPlayerLoadout playerLoadout)
 
float GetLoadoutSpawnSupplyCostMultiplier ()
 
protected bool CanSaveLoadout (int playerId, notnull GameEntity characterEntity, FactionAffiliationComponent playerFactionAffiliation, SCR_ArsenalComponent arsenalComponent, bool sendNotificationOnFailed)
 
void SetPlayerArsenalLoadout (int playerId, GameEntity characterEntity, SCR_ArsenalComponent arsenalComponent, SCR_EArsenalSupplyCostType arsenalSupplyType)
 
protected SCR_PlayerLoadoutData GetPlayerLoadoutData (GameEntity characterEntity)
 
protected void ComputeSuppliesCost (notnull SCR_Faction faction, notnull SCR_ArsenalPlayerLoadout playerLoadout, SCR_EArsenalSupplyCostType arsenalSupplyType)
 
protected void ComputeStorage (notnull SCR_JsonLoadContext context, notnull SCR_Faction faction, notnull SCR_ArsenalPlayerLoadout playerLoadout, string storageName, SCR_EArsenalSupplyCostType arsenalSupplyType)
 
protected void ComputeStorageEntity (notnull SCR_JsonLoadContext context, notnull SCR_Faction faction, notnull SCR_ArsenalPlayerLoadout playerLoadout, string entityName, SCR_EArsenalSupplyCostType arsenalSupplyType)
 
protected void ComputeEntity (notnull SCR_JsonLoadContext context, notnull SCR_Faction faction, notnull SCR_ArsenalPlayerLoadout playerLoadout, string entityName, SCR_EArsenalSupplyCostType arsenalSupplyType)
 
protected void DoSetPlayerLoadout (int playerId, string loadoutString, GameEntity characterEntity, SCR_EArsenalSupplyCostType arsenalSupplyType)
 
override protected void OnPlayerAuditSuccess (int playerId)
 
protected void DoSetPlayerHasLoadout (int playerId, bool loadoutValid, bool loadoutChanged, bool notification)
 
protected void DoSendPlayerLoadout (int playerId, SCR_PlayerLoadoutData loadoutData)
 
protected void DoPlayerClearHasLoadout (int playerId)
 
override void EOnInit (IEntity owner)
 
override void OnPostInit (IEntity owner)
 Editable Mine. More...
 
override void OnDelete (IEntity owner)
 

Variables

string loadout
 
ref SCR_PlayerLoadoutData loadoutData
 
float suppliesCost = 0.0
 
SCR_ArsenalManagerComponentClass s_Instance
 
protected ResourceName m_sArsenalSaveTypeInfoHolder
 
protected ResourceName m_sLoadoutSaveBlackListHolder
 
protected bool m_bDisable protected ref map< string, ref SCR_ArsenalPlayerLoadoutm_aPlayerLoadouts = new map<string, ref SCR_ArsenalPlayerLoadout>()
 
protected ref ScriptInvokerBase< SCR_ArsenalManagerComponent_OnPlayerLoadoutChangedm_OnPlayerLoadoutUpdated = new ScriptInvokerBase<SCR_ArsenalManagerComponent_OnPlayerLoadoutChanged>()
 
protected ref SCR_ArsenalSaveTypeInfoHolder m_ArsenalSaveTypeInfoHolder
 
protected ref SCR_LoadoutSaveBlackListHolder m_LoadoutSaveBlackListHolder
 
protected bool m_bLocalPlayerLoadoutAvailable
 
ref SCR_PlayerLoadoutData m_bLocalPlayerLoadoutData
 
protected float m_fLoadoutSpawnSupplyCostMultiplier
 

Typedef Documentation

◆ SCR_ArsenalManagerComponent_OnPlayerLoadoutChanged

Function Documentation

◆ CanSaveLoadout()

protected bool CanSaveLoadout ( int  playerId,
notnull GameEntity  characterEntity,
FactionAffiliationComponent  playerFactionAffiliation,
SCR_ArsenalComponent  arsenalComponent,
bool  sendNotificationOnFailed 
)

Definition at line 361 of file SCR_ArsenalManagerComponent.c.

◆ ComputeEntity()

protected void ComputeEntity ( notnull SCR_JsonLoadContext  context,
notnull SCR_Faction  faction,
notnull SCR_ArsenalPlayerLoadout  playerLoadout,
string  entityName,
SCR_EArsenalSupplyCostType  arsenalSupplyType 
)

Definition at line 714 of file SCR_ArsenalManagerComponent.c.

◆ ComputeStorage()

protected void ComputeStorage ( notnull SCR_JsonLoadContext  context,
notnull SCR_Faction  faction,
notnull SCR_ArsenalPlayerLoadout  playerLoadout,
string  storageName,
SCR_EArsenalSupplyCostType  arsenalSupplyType 
)

Definition at line 638 of file SCR_ArsenalManagerComponent.c.

◆ ComputeStorageEntity()

protected void ComputeStorageEntity ( notnull SCR_JsonLoadContext  context,
notnull SCR_Faction  faction,
notnull SCR_ArsenalPlayerLoadout  playerLoadout,
string  entityName,
SCR_EArsenalSupplyCostType  arsenalSupplyType 
)

Definition at line 689 of file SCR_ArsenalManagerComponent.c.

◆ ComputeSuppliesCost()

protected void ComputeSuppliesCost ( notnull SCR_Faction  faction,
notnull SCR_ArsenalPlayerLoadout  playerLoadout,
SCR_EArsenalSupplyCostType  arsenalSupplyType 
)

Definition at line 626 of file SCR_ArsenalManagerComponent.c.

◆ DoPlayerClearHasLoadout()

protected void DoPlayerClearHasLoadout ( int  playerId)

Definition at line 834 of file SCR_ArsenalManagerComponent.c.

◆ DoSendPlayerLoadout()

protected void DoSendPlayerLoadout ( int  playerId,
SCR_PlayerLoadoutData  loadoutData 
)

Definition at line 826 of file SCR_ArsenalManagerComponent.c.

◆ DoSetPlayerHasLoadout()

protected void DoSetPlayerHasLoadout ( int  playerId,
bool  loadoutValid,
bool  loadoutChanged,
bool  notification 
)

Definition at line 798 of file SCR_ArsenalManagerComponent.c.

◆ DoSetPlayerLoadout()

protected void DoSetPlayerLoadout ( int  playerId,
string  loadoutString,
GameEntity  characterEntity,
SCR_EArsenalSupplyCostType  arsenalSupplyType 
)

Definition at line 741 of file SCR_ArsenalManagerComponent.c.

◆ GetArsenalSaveTypeInfoHolder()

SCR_ArsenalSaveTypeInfoHolder GetArsenalSaveTypeInfoHolder ( )
Returns
Get Save type info holder

Definition at line 72 of file SCR_ArsenalManagerComponent.c.

◆ GetLoadoutSaveBlackListHolder()

SCR_LoadoutSaveBlackListHolder GetLoadoutSaveBlackListHolder ( )
Returns
Get Loadout save blacklist holder

Definition at line 79 of file SCR_ArsenalManagerComponent.c.

◆ GetLoadoutSpawnSupplyCostMultiplier()

float GetLoadoutSpawnSupplyCostMultiplier ( )
Returns
The spawn cost multiplier. Will always be 0 if supplies are disabled

Definition at line 196 of file SCR_ArsenalManagerComponent.c.

◆ GetLocalPlayerLoadoutAvailable()

bool GetLocalPlayerLoadoutAvailable ( )
Returns

Definition at line 152 of file SCR_ArsenalManagerComponent.c.

◆ GetOnLoadoutUpdated()

ScriptInvokerBase<SCR_ArsenalManagerComponent_OnPlayerLoadoutChanged> GetOnLoadoutUpdated ( )
Returns

Definition at line 159 of file SCR_ArsenalManagerComponent.c.

◆ GetPlayerArsenalLoadout()

bool GetPlayerArsenalLoadout ( string  playerUID,
out SCR_ArsenalPlayerLoadout  playerLoadout 
)

Authority side

Parameters
[in]playerId
[out]playerLoadout
Returns

Definition at line 169 of file SCR_ArsenalManagerComponent.c.

◆ GetPlayerLoadoutData()

protected SCR_PlayerLoadoutData GetPlayerLoadoutData ( GameEntity  characterEntity)

Definition at line 552 of file SCR_ArsenalManagerComponent.c.

◆ OnPlayerAuditSuccess()

override protected void OnPlayerAuditSuccess ( int  playerId)

Event is called when player connecting Session hosting current Game Mode where is required authentication verification via. platform services AuditSuccess() call specifically mean this verification was successful Basically audited player has access to persistency/ etc. related functionality provided by online services.

Parameters
[in]playerIdis index of player in game, equal to the one assigned at PlayerController

Definition at line 776 of file SCR_ArsenalManagerComponent.c.

◆ OnPlayerChangedFaction()

protected void OnPlayerChangedFaction ( int  playerId,
SCR_PlayerFactionAffiliationComponent  playerFactionAffiliation,
Faction  faction 
)

Definition at line 85 of file SCR_ArsenalManagerComponent.c.

◆ RPC_OnPlayerLoadoutCleared()

protected void RPC_OnPlayerLoadoutCleared ( int  playerIdClearedLoadout)

Definition at line 132 of file SCR_ArsenalManagerComponent.c.

◆ SCR_ArsenalManagerComponent_OnPlayerLoadoutChanged()

◆ SetLoadoutBlackListActiveStates()

void SetLoadoutBlackListActiveStates ( notnull array< bool >  orderedActiveStates,
bool  clearExistingLoadouts,
int  editorPlayerIdClearedLoadout = -1 
)

Update BlackList active states (Server only)

Parameters
[in]orderedActiveStatesAn ordered list of all blacklists and their new active state
[in]clearExistingLoadouts
[in]editorPlayerIdClearedLoadout

Definition at line 108 of file SCR_ArsenalManagerComponent.c.

◆ SetPlayerArsenalLoadout()

void SetPlayerArsenalLoadout ( int  playerId,
GameEntity  characterEntity,
SCR_ArsenalComponent  arsenalComponent,
SCR_EArsenalSupplyCostType  arsenalSupplyType 
)

Authority side

Parameters
[in]playerId
[in]characterEntity
[in]arsenalComponent
[in]arsenalSupplyType

Definition at line 519 of file SCR_ArsenalManagerComponent.c.

Variable Documentation

◆ loadout

string loadout

Definition at line 2 of file SCR_ArsenalManagerComponent.c.

◆ loadoutData

ref SCR_PlayerLoadoutData loadoutData

Definition at line 3 of file SCR_ArsenalManagerComponent.c.

◆ m_aPlayerLoadouts

protected bool m_bDisable protected ref map<string, ref SCR_ArsenalPlayerLoadout> m_aPlayerLoadouts = new map<string, ref SCR_ArsenalPlayerLoadout>()

Definition at line 47 of file SCR_ArsenalManagerComponent.c.

◆ m_ArsenalSaveTypeInfoHolder

protected ref SCR_ArsenalSaveTypeInfoHolder m_ArsenalSaveTypeInfoHolder

Definition at line 52 of file SCR_ArsenalManagerComponent.c.

◆ m_bLocalPlayerLoadoutAvailable

protected bool m_bLocalPlayerLoadoutAvailable

Definition at line 55 of file SCR_ArsenalManagerComponent.c.

◆ m_bLocalPlayerLoadoutData

ref SCR_PlayerLoadoutData m_bLocalPlayerLoadoutData

Definition at line 56 of file SCR_ArsenalManagerComponent.c.

◆ m_fLoadoutSpawnSupplyCostMultiplier

protected float m_fLoadoutSpawnSupplyCostMultiplier

Definition at line 59 of file SCR_ArsenalManagerComponent.c.

◆ m_LoadoutSaveBlackListHolder

protected ref SCR_LoadoutSaveBlackListHolder m_LoadoutSaveBlackListHolder

Definition at line 53 of file SCR_ArsenalManagerComponent.c.

◆ m_OnPlayerLoadoutUpdated

protected ref ScriptInvokerBase<SCR_ArsenalManagerComponent_OnPlayerLoadoutChanged> m_OnPlayerLoadoutUpdated = new ScriptInvokerBase<SCR_ArsenalManagerComponent_OnPlayerLoadoutChanged>()

Definition at line 50 of file SCR_ArsenalManagerComponent.c.

◆ m_sArsenalSaveTypeInfoHolder

protected ResourceName m_sArsenalSaveTypeInfoHolder

Definition at line 38 of file SCR_ArsenalManagerComponent.c.

◆ m_sLoadoutSaveBlackListHolder

protected ResourceName m_sLoadoutSaveBlackListHolder

Definition at line 41 of file SCR_ArsenalManagerComponent.c.

◆ s_Instance

◆ suppliesCost

float suppliesCost = 0.0

Definition at line 4 of file SCR_ArsenalManagerComponent.c.