Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PlayerArsenalLoadout Class Reference
Inheritance diagram for SCR_PlayerArsenalLoadout:
SCR_FactionPlayerLoadout

Static Protected Member Functions

static bool ReadEntityLoadoutString (IEntity owner, SaveContext context)
static bool ReadEntityCustomDataString (IEntity owner, SaveContext context)
 Add your modded logic here for custom components to store their data and read back later. Call super for multi mod compatiblity!
static void FindStorageComponents (IEntity owner, notnull set< BaseInventoryStorageComponent > storages)
static void FindStorageComponents (GenericComponent parentComponent, notnull set< BaseInventoryStorageComponent > storages)
static bool ShouldSaveStorage (BaseInventoryStorageComponent candidate)
static bool ReadEntityStorageString (IEntity owner, SaveContext context)
static array< InventoryItemComponentGetSlotItems (const BaseInventoryStorageComponent storage)
static bool ReadCharacterDataLoadoutString (IEntity owner, SaveContext context)
static string GetComponentIdentifier (IEntity owner, GenericComponent component)
static bool ApplyLoadoutString (IEntity owner, LoadContext context)
static bool ApplyEntityLoadoutString (IEntity owner, LoadContext context, InventoryStorageManagerComponent manager, BaseInventoryStorageComponent parentStorage=null, int slotId=-1)
static bool ApplyEntityCustomDataString (IEntity owner, LoadContext context)
static bool ApplyEntityStorageString (IEntity owner, LoadContext context, InventoryStorageManagerComponent manager, BaseInventoryStorageComponent parentStorage=null, int slotId=-1)
static bool ApplyCharacterDataLoadoutString (IEntity owner, LoadContext context)
static void ComputeSuppliesCost (LoadContext context, SCR_Faction faction, SCR_ArsenalPlayerLoadout playerLoadout, SCR_EArsenalSupplyCostType arsenalSupplyType, int depth=0)

Detailed Description

Definition at line 2 of file SCR_PlayerArsenalLoadout.c.

Member Function Documentation

◆ ApplyCharacterDataLoadoutString()

bool SCR_PlayerArsenalLoadout::ApplyCharacterDataLoadoutString ( IEntity owner,
LoadContext context )
inlinestaticprotected

Definition at line 451 of file SCR_PlayerArsenalLoadout.c.

◆ ApplyEntityCustomDataString()

bool SCR_PlayerArsenalLoadout::ApplyEntityCustomDataString ( IEntity owner,
LoadContext context )
inlinestaticprotected

Definition at line 352 of file SCR_PlayerArsenalLoadout.c.

◆ ApplyEntityLoadoutString()

bool SCR_PlayerArsenalLoadout::ApplyEntityLoadoutString ( IEntity owner,
LoadContext context,
InventoryStorageManagerComponent manager,
BaseInventoryStorageComponent parentStorage = null,
int slotId = -1 )
inlinestaticprotected

Definition at line 316 of file SCR_PlayerArsenalLoadout.c.

◆ ApplyEntityStorageString()

bool SCR_PlayerArsenalLoadout::ApplyEntityStorageString ( IEntity owner,
LoadContext context,
InventoryStorageManagerComponent manager,
BaseInventoryStorageComponent parentStorage = null,
int slotId = -1 )
inlinestaticprotected

Definition at line 358 of file SCR_PlayerArsenalLoadout.c.

◆ ApplyLoadoutString()

bool SCR_PlayerArsenalLoadout::ApplyLoadoutString ( IEntity owner,
LoadContext context )
inlinestaticprotected

Definition at line 300 of file SCR_PlayerArsenalLoadout.c.

◆ ComputeSuppliesCost()

void SCR_PlayerArsenalLoadout::ComputeSuppliesCost ( LoadContext context,
SCR_Faction faction,
SCR_ArsenalPlayerLoadout playerLoadout,
SCR_EArsenalSupplyCostType arsenalSupplyType,
int depth = 0 )
inlinestaticprotected

Definition at line 501 of file SCR_PlayerArsenalLoadout.c.

◆ FindStorageComponents() [1/2]

void SCR_PlayerArsenalLoadout::FindStorageComponents ( GenericComponent parentComponent,
notnull set< BaseInventoryStorageComponent > storages )
inlinestaticprotected

Definition at line 174 of file SCR_PlayerArsenalLoadout.c.

◆ FindStorageComponents() [2/2]

void SCR_PlayerArsenalLoadout::FindStorageComponents ( IEntity owner,
notnull set< BaseInventoryStorageComponent > storages )
inlinestaticprotected

Definition at line 161 of file SCR_PlayerArsenalLoadout.c.

◆ GetComponentIdentifier()

string SCR_PlayerArsenalLoadout::GetComponentIdentifier ( IEntity owner,
GenericComponent component )
inlinestaticprotected

Definition at line 292 of file SCR_PlayerArsenalLoadout.c.

◆ GetSlotItems()

array< InventoryItemComponent > SCR_PlayerArsenalLoadout::GetSlotItems ( const BaseInventoryStorageComponent storage)
inlinestaticprotected

Get all slots in any relevant order from the storage. Default is simply all slots in default order. Default order is simply by slot index in ASC order

Definition at line 242 of file SCR_PlayerArsenalLoadout.c.

◆ ReadCharacterDataLoadoutString()

bool SCR_PlayerArsenalLoadout::ReadCharacterDataLoadoutString ( IEntity owner,
SaveContext context )
inlinestaticprotected

Add any custom logic that should be saved for the main character entity the loadout is for. Is written and read back after all components and storage slots are handled so it allows interacting with otherwise finished char.

Definition at line 277 of file SCR_PlayerArsenalLoadout.c.

◆ ReadEntityCustomDataString()

bool SCR_PlayerArsenalLoadout::ReadEntityCustomDataString ( IEntity owner,
SaveContext context )
inlinestaticprotected

Add your modded logic here for custom components to store their data and read back later. Call super for multi mod compatiblity!

Definition at line 155 of file SCR_PlayerArsenalLoadout.c.

◆ ReadEntityLoadoutString()

bool SCR_PlayerArsenalLoadout::ReadEntityLoadoutString ( IEntity owner,
SaveContext context )
inlinestaticprotected

Definition at line 143 of file SCR_PlayerArsenalLoadout.c.

◆ ReadEntityStorageString()

bool SCR_PlayerArsenalLoadout::ReadEntityStorageString ( IEntity owner,
SaveContext context )
inlinestaticprotected

Definition at line 199 of file SCR_PlayerArsenalLoadout.c.

◆ ShouldSaveStorage()

bool SCR_PlayerArsenalLoadout::ShouldSaveStorage ( BaseInventoryStorageComponent candidate)
inlinestaticprotected

Definition at line 187 of file SCR_PlayerArsenalLoadout.c.


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