![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Classes | |
| class | SCR_LoadoutManagerClass |
Variables | |
| SCR_LoadoutManagerClass | INVALID_LOADOUT_INDEX = -1 |
| ref array< ref SCR_BasePlayerLoadout > | m_aPlayerLoadouts |
| ref array< ref SCR_PlayerLoadoutInfo > | m_aPlayerLoadoutInfo = {} |
| List of all player loadout infos in no particular order. Maintained by the authority. | |
| ref map< int, int > | m_PreviousPlayerLoadouts = new map<int, int>() |
| Map of previous player <playerId : loadoutIndex>. | |
| ref set< int > | m_ChangedLoadouts = new set<int>() |
| List of indices of loadouts whose count has changed since last update. | |
| ref map< int, ref SCR_PlayerLoadoutInfo > | m_MappedPlayerLoadoutInfo = new map<int, ref SCR_PlayerLoadoutInfo>() |
| Local mapping of playerId to player loadout info. | |
| ref map< int, int > | m_PlayerCount = new map<int, int>() |
| Mapping of loadout id:player count. | |
| ref ScriptInvoker< SCR_BasePlayerLoadout, int > | m_OnMappedPlayerLoadoutInfoChanged |
|
protected |
Authority: Return whether provided loadout can be set for the requesting player. Game logic can be implemented here, e.g. maximum slots.
| [in] | playerLoadoutComponent | |
| [in] | loadout |
Definition at line 278 of file SCR_LoadoutManager.c.
|
protected |
Returns loadout at provided index or null if none.
| [in] | index |
Definition at line 318 of file SCR_LoadoutManager.c.
|
protected |
Returns the first loadout with the provided name, or null if none were found.
| [in] | name |
Definition at line 330 of file SCR_LoadoutManager.c.
|
protected |
Returns the number of loadouts provided by this manager or 0 if none.
Definition at line 292 of file SCR_LoadoutManager.c.
|
protected |
Returns index of provided loadout or -1 if none.
| [in] | loadout |
Definition at line 303 of file SCR_LoadoutManager.c.
|
protected |
Returns current count of players assigned to the provided loadout.
| [in] | loadout |
Definition at line 86 of file SCR_LoadoutManager.c.
|
protected |
Return loadout of of local player.
| Exception | if no SCR_LoadoutManager is present in the world. |
Definition at line 64 of file SCR_LoadoutManager.c.
|
protected |
Definition at line 533 of file SCR_LoadoutManager.c.
|
protected |
Return assigned loadout of provided player by their id.
| [in] | playerId | Id of target player corresponding to PlayerController/PlayerManager player id. |
Definition at line 35 of file SCR_LoadoutManager.c.
|
protected |
Definition at line 285 of file SCR_LoadoutManager.c.
|
protected |
|
protected |
| [in] | faction | |
| [out] | outLoadouts |
Definition at line 381 of file SCR_LoadoutManager.c.
|
protected |
| [in] | group | |
| [in] | faction | |
| [out] | outLoadouts |
Definition at line 425 of file SCR_LoadoutManager.c.
|
protected |
Returns random loadout that belongs to provided faction or null if none.
| [in] | faction |
Definition at line 350 of file SCR_LoadoutManager.c.
|
protected |
Definition at line 522 of file SCR_LoadoutManager.c.
|
protected |
Definition at line 508 of file SCR_LoadoutManager.c.
Definition at line 360 of file SCR_LoadoutManager.c.
|
protected |
Anyone: Event raised when provided faction's player count changes.
Note: Order of changes is not fully deterministic, e.g. when changing faction from A to B, this method might be invoked in the order B, A instead.
| [in] | loadout | The loadout for which affiliated player count changed. |
| [in] | newCount | The new number of players that are using this loadout. |
Definition at line 176 of file SCR_LoadoutManager.c.
|
protected |
Update local player loadout mapping.
Definition at line 111 of file SCR_LoadoutManager.c.
|
protected |
Authority: Event raised when provided player component has a loadout set.
Definition at line 191 of file SCR_LoadoutManager.c.
|
protected |
| [in] | src | |
| [in] | parent |
Definition at line 569 of file SCR_LoadoutManager.c.
|
protected |
Authority: Update player loadout info for target player with their up-to-date state.
| [in] | playerLoadoutComponent |
Definition at line 202 of file SCR_LoadoutManager.c.
|
protected |
destructor
Definition at line 580 of file SCR_LoadoutManager.c.
| SCR_LoadoutManagerClass INVALID_LOADOUT_INDEX = -1 |
|
protected |
List of all player loadout infos in no particular order. Maintained by the authority.
Definition at line 15 of file SCR_LoadoutManager.c.
|
protected |
Definition at line 11 of file SCR_LoadoutManager.c.
List of indices of loadouts whose count has changed since last update.
Definition at line 21 of file SCR_LoadoutManager.c.
|
protected |
Local mapping of playerId to player loadout info.
Definition at line 24 of file SCR_LoadoutManager.c.
|
protected |
Definition at line 29 of file SCR_LoadoutManager.c.
Mapping of loadout id:player count.
Definition at line 27 of file SCR_LoadoutManager.c.