Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_FiringRangeScoringComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_FiringRangeScoringComponentClass

Functions

void OnDisconnected (int playerID)
void OnKill (notnull SCR_InstigatorContextData instigatorContextData)
SCR_PlayerScoreInfoFiringRange AddPlayer (int playerID)
void RemovePlayer (int playerID)
void ClearScore (int playerID)
void AddScore (int playerID, int scorePoints)
void SetScoreMax (int playerID, int scorePointsMax)
int GetScore (int playerID)
int GetPlayersCount ()

Variables

SCR_FiringRangeScoringComponentClass s_Manager
ref array< ref SCR_PlayerScoreInfoFiringRangem_aAllPlayersInfo = {}
 Contains score info of all the players.

Function Documentation

◆ AddPlayer()

SCR_PlayerScoreInfoFiringRange AddPlayer ( int playerID)
protected

Add a player to the player array m_aAllPlayersInfo.

Parameters
[in]playerID,isunique player identifier.

Definition at line 51 of file SCR_FiringRangeScoringComponent.c.

◆ AddScore()

void AddScore ( int playerID,
int scorePoints )
protected
Parameters
[in]playerID
[in]scorePoints

Definition at line 84 of file SCR_FiringRangeScoringComponent.c.

◆ ClearScore()

void ClearScore ( int playerID)
protected
Parameters
[in]playerID

Definition at line 73 of file SCR_FiringRangeScoringComponent.c.

◆ GetPlayersCount()

int GetPlayersCount ( )
protected
Returns
the number of players.

Definition at line 116 of file SCR_FiringRangeScoringComponent.c.

◆ GetScore()

int GetScore ( int playerID)
protected

Get the integer equal to the player's kill count.

Parameters
[in]playerID,isunique player identifier.
Returns
the player's kill count.

Definition at line 106 of file SCR_FiringRangeScoringComponent.c.

◆ OnDisconnected()

void OnDisconnected ( int playerID)
protected
Parameters
[in]playerID

Definition at line 15 of file SCR_FiringRangeScoringComponent.c.

◆ OnKill()

void OnKill ( notnull SCR_InstigatorContextData instigatorContextData)
protected

What happens when a player is killed.

Parameters
[in]playerId
[in]playerEntity
[in]killerEntity
[in]killer

Definition at line 35 of file SCR_FiringRangeScoringComponent.c.

◆ RemovePlayer()

void RemovePlayer ( int playerID)
protected

Remove a player from the player array m_aAllPlayersInfo.

Parameters
[in]playerID,isunique player identifier.

Definition at line 64 of file SCR_FiringRangeScoringComponent.c.

◆ SetScoreMax()

void SetScoreMax ( int playerID,
int scorePointsMax )
protected

Set the maximal score of given firing line

Parameters
[in]playerID
[in]scorePointsMax

Definition at line 95 of file SCR_FiringRangeScoringComponent.c.

Variable Documentation

◆ m_aAllPlayersInfo

ref array<ref SCR_PlayerScoreInfoFiringRange> m_aAllPlayersInfo = {}
protected

Contains score info of all the players.

Definition at line 11 of file SCR_FiringRangeScoringComponent.c.

◆ s_Manager