Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Data Structures | |
class | SCR_FactionManagerClass |
Typedefs | |
typedef func | SCR_FactionManager_PlayerFactionChanged |
Variables | |
protected ref map< int, int > | m_PreviousPlayerFactions = new map<int, int>() |
Map of previous players <playerId : factionIndex>. More... | |
protected ref set< int > | m_ChangedFactions = new set<int>() |
List of indices of factions whose count has changed since last update. More... | |
protected ref map< int, ref SCR_PlayerFactionInfo > | m_MappedPlayerFactionInfo = new map<int, ref SCR_PlayerFactionInfo>() |
Local mapping of playerId to player faction info. More... | |
protected ref map< int, int > | m_PlayerCount = new map<int, int>() |
Mapping of faction id : player count. More... | |
protected ref ScriptInvoker | s_OnPlayerFactionCountChanged = new ScriptInvoker() |
protected ref ScriptInvokerBase< SCR_FactionManager_PlayerFactionChanged > | m_OnPlayerFactionChanged_S |
Definition at line 3 of file SCR_FactionManager.c.
SCR_FactionManagerClass FactionManagerClass Attribute | ( | defvalue:"1" | , |
desc:"Whether or not the isPlayable state of a faction can be changed on run time" | |||
) |
List of all player faction infos in no particular order. Maintained by the authority.
Definition at line 11 of file SCR_FactionManager.c.
bool CanChangeFactionsPlayable | ( | ) |
Check if the faction is playable. Non-playable factions will not appear in the respawn menu.
Definition at line 504 of file SCR_FactionManager.c.
array<ref SCR_RankID> GetAllAvailableRanks | ( | ) |
Definition at line 266 of file SCR_FactionManager.c.
Returns current count of players assigned to the provided faction.
[in] | faction |
Definition at line 215 of file SCR_FactionManager.c.
Faction GetLocalPlayerFaction | ( | ) |
Return affiliated faction of local player.
Exception | if no FactionManager is present in the world. |
Definition at line 190 of file SCR_FactionManager.c.
ScriptInvokerBase<SCR_FactionManager_PlayerFactionChanged> GetOnPlayerFactionChanged_S | ( | ) |
return Script invoker on player faction changed (Server only)
Definition at line 53 of file SCR_FactionManager.c.
ScriptInvoker GetOnPlayerFactionCountChanged | ( | ) |
Definition at line 43 of file SCR_FactionManager.c.
Return affiliated faction of provided player by their id.
[in] | playerId | Id of target player corresponding to PlayerController/PlayerManager player id. |
Exception | if no FactionManager is present in the world. |
Definition at line 161 of file SCR_FactionManager.c.
SCR_RankID GetRankByID | ( | SCR_ECharacterRank | rankID | ) |
SCR_ECharacterRank GetRankByXP | ( | int | XP | ) |
SCR_ECharacterRank GetRankNext | ( | SCR_ECharacterRank | rank | ) |
[in] | rank |
Definition at line 343 of file SCR_FactionManager.c.
SCR_ECharacterRank GetRankPrev | ( | SCR_ECharacterRank | rank | ) |
protected SCR_ECharacterRank GetRenegadeRank | ( | ) |
Definition at line 304 of file SCR_FactionManager.c.
int GetRequiredRankXP | ( | SCR_ECharacterRank | rankID | ) |
int GetSortedFactionsList | ( | out notnull SCR_SortedArray< SCR_Faction > | outFactions | ) |
Get factions sorted according to their own custom order.
[out] | outFactions | Array to be filled with factions |
Definition at line 242 of file SCR_FactionManager.c.
bool IsRankRenegade | ( | SCR_ECharacterRank | rankID | ) |
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] | faction | The faction for which affiliated player count changed. |
[in] | newCount | The new number of players that are part of this faction. |
Definition at line 142 of file SCR_FactionManager.c.
protected void OnPlayerFactionInfoChanged | ( | ) |
Update local player faction mapping.
Definition at line 63 of file SCR_FactionManager.c.
protected void OnPlayerFactionSet_S | ( | SCR_PlayerFactionAffiliationComponent | playerComponent, |
Faction | faction | ||
) |
Authority: Event raised when provided player component has a faction set.
Definition at line 124 of file SCR_FactionManager.c.
void SCR_FactionManager | ( | IEntitySource | src, |
IEntity | parent | ||
) |
[in] | src | |
[in] | parent |
Definition at line 461 of file SCR_FactionManager.c.
void SCR_FactionManager_PlayerFactionChanged | ( | int | playerId, |
SCR_PlayerFactionAffiliationComponent | playerFactionAffiliationComponent, | ||
Faction | faction | ||
) |
void SetFactionsFriendly | ( | notnull SCR_Faction | factionA, |
notnull SCR_Faction | factionB, | ||
int | playerChanged = -1 |
||
) |
Set given factions friendly towards eachother (Server Only) It is possible to set the same faction friendly towards itself to prevent faction infighting
[in] | factionA | faction to set friendly to factionB |
[in] | factionB | faction to set friendly to factionA |
[in] | playerChanged | id of player who changed it to show notification. Leave -1 to not show notification |
Definition at line 517 of file SCR_FactionManager.c.
void SetFactionsHostile | ( | notnull SCR_Faction | factionA, |
notnull SCR_Faction | factionB, | ||
int | playerChanged = -1 |
||
) |
Set given factions hostile towards eachother (Server Only) It is possible to set the same faction hostile towards itself to allow faction infighting
[in] | factionA | faction to set hostile to factionB |
[in] | factionB | faction to set hostile to factionA |
[in] | playerChanged | id of player who changed it to show notification. Leave -1 to not show notification |
Definition at line 550 of file SCR_FactionManager.c.
void UpdatePlayerFaction_S | ( | SCR_PlayerFactionAffiliationComponent | playerFactionComponent | ) |
Authority: Update player faction info for target player with their up-to-date state.
[in] | playerFactionComponent |
Definition at line 591 of file SCR_FactionManager.c.
void ~SCR_FactionManager | ( | ) |
Definition at line 493 of file SCR_FactionManager.c.
List of indices of factions whose count has changed since last update.
Definition at line 28 of file SCR_FactionManager.c.
protected ref map<int, ref SCR_PlayerFactionInfo> m_MappedPlayerFactionInfo = new map<int, ref SCR_PlayerFactionInfo>() |
Local mapping of playerId to player faction info.
Definition at line 31 of file SCR_FactionManager.c.
protected ref ScriptInvokerBase<SCR_FactionManager_PlayerFactionChanged> m_OnPlayerFactionChanged_S |
Definition at line 39 of file SCR_FactionManager.c.
Mapping of faction id : player count.
Definition at line 34 of file SCR_FactionManager.c.
Map of previous players <playerId : factionIndex>.
Definition at line 25 of file SCR_FactionManager.c.
protected ref ScriptInvoker s_OnPlayerFactionCountChanged = new ScriptInvoker() |
Definition at line 37 of file SCR_FactionManager.c.