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_CampaignNetworkComponentClass |
Macros | |
#define | ENABLE_BASE_DESTRUCTION |
Functions | |
WorldTimestamp | GetLastRequestTimestamp () |
void | SetLastRequestTimestamp (WorldTimestamp timestamp) |
protected bool | IsProxy () |
void | RepairComposition (int index, int repairCost, int destructibleID, SCR_SiteSlotEntity slotEnt, notnull SCR_CampaignMilitaryBaseComponent base) |
Repair destroyed mandatory part of composition. More... | |
void | LoadSupplies (RplId suppliesID, IEntity player, SCR_CampaignMilitaryBaseComponent base, int amount=0) |
void | LoadSuppliesStandalone (RplId suppliesID, IEntity player, SCR_CampaignSuppliesComponent depot, int amount=0) |
void | StartLoading (RplId suppliesID, int supplies, bool IsUnloading=false) |
void | StopLoading (RplId suppliesID, bool IsUnloading=false) |
void | UnloadSupplies (RplId suppliesID, IEntity player, SCR_CampaignMilitaryBaseComponent base, int amount=0) |
void | AddRadio () |
protected void | RpcAsk_AddRadio (int playerID) |
protected void | RpcDo_AddRadio (RplId ID) |
protected void | FindRadioDelayed (RplId ID) |
void | DeployMobileAsembly (notnull SCR_CampaignMobileAssemblyComponent comp, bool deploy) |
protected void | RpcAsk_DeployMobileAsembly (RplId assemblyComponentID, bool deploy, int playerID) |
void | CaptureBase (SCR_CampaignMilitaryBaseComponent base) |
void | CaptureBaseGM (SCR_CampaignMilitaryBaseComponent base, int factionIndex) |
void | ToggleBaseCapture (notnull SCR_CampaignMilitaryBaseComponent base, bool isBeingCaptured) |
protected void | RpcAsk_RepairComposition (int index, int repairCost, int destructibleID, RplId slotID, RplId baseID) |
Repair damaged entity in composition. More... | |
void | AddSuppliesFromContextMenu (notnull SCR_CampaignMilitaryBaseComponent base, int suppliesCnt) |
protected void | RpcAsk_AddSuppliesFromContextMenu (RplId baseID, int suppliesCnt) |
protected void | SendToVehicleOccupants (ENotification messageID, IEntity vehicleEntity, int playerID, int number=0) |
protected void | RpcAsk_SuppliesLoadingStarted (RplId suppliesID, int playerID, int supplies, bool IsUnloading) |
protected void | RpcAsk_SuppliesLoadingCanceled (RplId suppliesID, int playerID, bool IsUnloading) |
protected void | RpcAsk_LoadSupplies (RplId suppliesID, int playerID, RplId baseID, int amount) |
protected void | RpcAsk_LoadSuppliesStandalone (RplId suppliesID, int playerID, RplId depotID, int amount) |
protected void | RpcAsk_UnloadSupplies (RplId suppliesID, int playerID, RplId baseID, int amount) |
protected void | RpcAsk_CaptureBaseBegin (RplId baseID, int factionIndex, int playerID) |
protected void | RpcAsk_CaptureBaseEnd (RplId baseID) |
void | SendPlayerMessage (SCR_ERadioMsg msgType, int baseCallsign=SCR_MilitaryBaseComponent.INVALID_BASE_CALLSIGN, int calledID=SCR_CampaignMilitaryBaseComponent.INVALID_PLAYER_INDEX, bool public=true, int param=SCR_CampaignRadioMsg.INVALID_RADIO_MSG_PARAM, bool checkHQReached=false) |
void | SetLastHQRadioMessageTimestamp (WorldTimestamp time) |
protected int | CompressCallsign (int company, int platoon, int squad) |
protected void | DecompressCallsign (int callsign, out int company, out int platoon, out int squad) |
protected void | RpcAsk_CaptureBase (RplId baseID, int factionIndex, int playerID) |
protected void | RpcDo_PlayerFeedback (int msgID) |
protected void | RpcDo_PlayerFeedbackValueBase (int msgID, float value, int baseID) |
protected void | RpcDo_PlayerFeedbackBase (int msgID, int baseID) |
protected void | PlayerFeedbackImpl (int msgID, float value=0, int assetID=-1, int baseID=-1) |
void | SendVehicleSpawnHint (int hintID) |
protected void | RpcDo_VehicleSpawnHint (int hintID) |
void | RespawnLocationPopup (int baseID) |
void | OnPlayerAliveStateChanged (bool alive) |
void | RpcDo_PlayerEnableShowingSpawnPosition (bool enable) |
protected void | HandleRadioRespawnTimer (RplId spawnPointId) |
protected void | RpcAsk_HandleRadioRespawnTimer (RplId selectedSpawnPointId) |
void | PlayRadioMsg (SCR_ERadioMsg msg, int FactionId, int baseCallsign, int callerCallsignCompany, int callerCallsignPlatoon, int callerCallsignSquad, int calledCallsignCompany, int calledCallsignPlatoon, int calledCallsignSquad, bool isPublic, int param, float seed, float quality, int playerID) |
void | RpcDo_PlayRadioMsg (SCR_ERadioMsg msg, int factionId, int baseCallsign, int callerCallsign, int calledCallsign, int param, float seed, float quality) |
void | CheckHQReached () |
void | OnPlayerSuppliesInteraction (EResourcePlayerInteractionType interactionType, PlayerController playerController, SCR_ResourceComponent resourceComponentFrom, SCR_ResourceComponent resourceComponentTo, EResourceType resourceType, float resourceValue) |
protected void | OnSuppliesLoaded (vector position, float amount) |
protected void | OnSuppliesUnloaded (vector position, float amount, int playerId) |
void | ResetSavedSupplies () |
override void | EOnInit (IEntity owner) |
override void | OnPostInit (IEntity owner) |
Called on PostInit when all components are added. More... | |
void | ~SCR_CampaignNetworkComponent () |
Variables | |
SCR_CampaignNetworkComponentClass | VEHICLE_SPAWNED |
Used to identify various notifications for client. More... | |
SCR_CampaignNetworkComponentClass | NO_SPACE |
SCR_CampaignNetworkComponentClass | OUT_OF_STOCK |
SCR_CampaignNetworkComponentClass | SUPPLIES_LOADED |
SCR_CampaignNetworkComponentClass | SUPPLIES_UNLOADED |
SCR_CampaignNetworkComponentClass | m_PlayerController |
Takes care of Campaign-specific server <> client communication and requests. More... | |
protected RplComponent | m_RplComponent |
protected bool | m_bFirstSpawn = true |
protected vector | m_vLastLoadedAt |
protected vector | m_vLastUnloadedAt |
protected float | m_fNoRewardSupplies |
protected int | m_iTotalSuppliesDelivered |
protected WorldTimestamp | m_fLastAssetRequestTimestamp |
protected WorldTimestamp | m_fLastHQRadioMessageTimestamp |
#define ENABLE_BASE_DESTRUCTION |
Definition at line 1 of file SCR_CampaignNetworkComponent.c.
void AddRadio | ( | ) |
Definition at line 193 of file SCR_CampaignNetworkComponent.c.
void AddSuppliesFromContextMenu | ( | notnull SCR_CampaignMilitaryBaseComponent | base, |
int | suppliesCnt | ||
) |
[in] | base | |
[in] | suppliesCnt |
Definition at line 421 of file SCR_CampaignNetworkComponent.c.
void CaptureBase | ( | SCR_CampaignMilitaryBaseComponent | base | ) |
Send server request to capture a base (change its owner)
[in] | base | Base to be captured |
Definition at line 308 of file SCR_CampaignNetworkComponent.c.
void CaptureBaseGM | ( | SCR_CampaignMilitaryBaseComponent | base, |
int | factionIndex | ||
) |
[in] | base | |
[in] | factionIndex |
Definition at line 336 of file SCR_CampaignNetworkComponent.c.
void CheckHQReached | ( | ) |
Definition at line 1238 of file SCR_CampaignNetworkComponent.c.
Definition at line 850 of file SCR_CampaignNetworkComponent.c.
Definition at line 856 of file SCR_CampaignNetworkComponent.c.
void DeployMobileAsembly | ( | notnull SCR_CampaignMobileAssemblyComponent | comp, |
bool | deploy | ||
) |
[in] | comp | |
[in] | deploy |
Definition at line 277 of file SCR_CampaignNetworkComponent.c.
protected void FindRadioDelayed | ( | RplId | ID | ) |
Definition at line 247 of file SCR_CampaignNetworkComponent.c.
WorldTimestamp GetLastRequestTimestamp | ( | ) |
Definition at line 69 of file SCR_CampaignNetworkComponent.c.
protected void HandleRadioRespawnTimer | ( | RplId | spawnPointId | ) |
Definition at line 1118 of file SCR_CampaignNetworkComponent.c.
protected bool IsProxy | ( | ) |
Definition at line 97 of file SCR_CampaignNetworkComponent.c.
void LoadSupplies | ( | RplId | suppliesID, |
IEntity | player, | ||
SCR_CampaignMilitaryBaseComponent | base, | ||
int | amount = 0 |
||
) |
Send server request to load supplies at a base
[in] | suppliesID | Unique ID identifying the supplies |
[in] | player | Player trying to unload supplies |
[in] | base | Base at which the supplies are being unloaded |
[in] | amount |
Definition at line 117 of file SCR_CampaignNetworkComponent.c.
void LoadSuppliesStandalone | ( | RplId | suppliesID, |
IEntity | player, | ||
SCR_CampaignSuppliesComponent | depot, | ||
int | amount = 0 |
||
) |
[in] | suppliesID | |
[in] | player | |
[in] | depot | |
[in] | amount |
Definition at line 137 of file SCR_CampaignNetworkComponent.c.
void OnPlayerAliveStateChanged | ( | bool | alive | ) |
[in] | alive |
Definition at line 1074 of file SCR_CampaignNetworkComponent.c.
void OnPlayerSuppliesInteraction | ( | EResourcePlayerInteractionType | interactionType, |
PlayerController | playerController, | ||
SCR_ResourceComponent | resourceComponentFrom, | ||
SCR_ResourceComponent | resourceComponentTo, | ||
EResourceType | resourceType, | ||
float | resourceValue | ||
) |
[in] | interactionType | |
[in] | playerController | |
[in] | resourceComponentFrom | |
[in] | resourceComponentTo | |
[in] | resourceType | |
[in] | resourceValue |
Definition at line 1252 of file SCR_CampaignNetworkComponent.c.
protected void OnSuppliesLoaded | ( | vector | position, |
float | amount | ||
) |
Definition at line 1293 of file SCR_CampaignNetworkComponent.c.
protected void OnSuppliesUnloaded | ( | vector | position, |
float | amount, | ||
int | playerId | ||
) |
Definition at line 1299 of file SCR_CampaignNetworkComponent.c.
Show notification about request result to the requester
[in] | msgID | Message ID (see ECampaignClientNotificationID) |
[in] | value | |
[in] | assetID | |
[in] | baseID |
Definition at line 929 of file SCR_CampaignNetworkComponent.c.
void PlayRadioMsg | ( | SCR_ERadioMsg | msg, |
int | FactionId, | ||
int | baseCallsign, | ||
int | callerCallsignCompany, | ||
int | callerCallsignPlatoon, | ||
int | callerCallsignSquad, | ||
int | calledCallsignCompany, | ||
int | calledCallsignPlatoon, | ||
int | calledCallsignSquad, | ||
bool | isPublic, | ||
int | param, | ||
float | seed, | ||
float | quality, | ||
int | playerID | ||
) |
[in] | msg | |
[in] | FactionId | |
[in] | baseCallsign | |
[in] | callerCallsignCompany | |
[in] | callerCallsignPlatoon | |
[in] | callerCallsignSquad | |
[in] | calledCallsignCompany | |
[in] | calledCallsignPlatoon | |
[in] | calledCallsignSquad | |
[in] | isPublic | |
[in] | param | |
[in] | seed | |
[in] | quality | |
[in] | playerID |
Definition at line 1187 of file SCR_CampaignNetworkComponent.c.
void RepairComposition | ( | int | index, |
int | repairCost, | ||
int | destructibleID, | ||
SCR_SiteSlotEntity | slotEnt, | ||
notnull SCR_CampaignMilitaryBaseComponent | base | ||
) |
Repair destroyed mandatory part of composition.
Definition at line 104 of file SCR_CampaignNetworkComponent.c.
void ResetSavedSupplies | ( | ) |
Definition at line 1317 of file SCR_CampaignNetworkComponent.c.
void RespawnLocationPopup | ( | int | baseID | ) |
[in] | baseID |
Definition at line 1067 of file SCR_CampaignNetworkComponent.c.
protected void RpcAsk_AddRadio | ( | int | playerID | ) |
Definition at line 200 of file SCR_CampaignNetworkComponent.c.
protected void RpcAsk_AddSuppliesFromContextMenu | ( | RplId | baseID, |
int | suppliesCnt | ||
) |
Definition at line 433 of file SCR_CampaignNetworkComponent.c.
Capture a base (change its owner)
[in] | baseID | Base entity ID |
[in] | factionIndex | Index of new faction to own the base |
[in] | playerID |
Definition at line 873 of file SCR_CampaignNetworkComponent.c.
Definition at line 731 of file SCR_CampaignNetworkComponent.c.
protected void RpcAsk_CaptureBaseEnd | ( | RplId | baseID | ) |
Definition at line 748 of file SCR_CampaignNetworkComponent.c.
protected void RpcAsk_DeployMobileAsembly | ( | RplId | assemblyComponentID, |
bool | deploy, | ||
int | playerID | ||
) |
Definition at line 284 of file SCR_CampaignNetworkComponent.c.
protected void RpcAsk_HandleRadioRespawnTimer | ( | RplId | selectedSpawnPointId | ) |
Definition at line 1130 of file SCR_CampaignNetworkComponent.c.
Load supplies at a base
[in] | suppliesID | supplies entity ID |
[in] | playerID | player entity ID |
[in] | baseID | base entity ID |
[in] | amount |
Definition at line 540 of file SCR_CampaignNetworkComponent.c.
protected void RpcAsk_LoadSuppliesStandalone | ( | RplId | suppliesID, |
int | playerID, | ||
RplId | depotID, | ||
int | amount | ||
) |
Definition at line 606 of file SCR_CampaignNetworkComponent.c.
protected void RpcAsk_RepairComposition | ( | int | index, |
int | repairCost, | ||
int | destructibleID, | ||
RplId | slotID, | ||
RplId | baseID | ||
) |
Repair damaged entity in composition.
Definition at line 368 of file SCR_CampaignNetworkComponent.c.
protected void RpcAsk_SuppliesLoadingCanceled | ( | RplId | suppliesID, |
int | playerID, | ||
bool | IsUnloading | ||
) |
Definition at line 510 of file SCR_CampaignNetworkComponent.c.
protected void RpcAsk_SuppliesLoadingStarted | ( | RplId | suppliesID, |
int | playerID, | ||
int | supplies, | ||
bool | IsUnloading | ||
) |
Definition at line 484 of file SCR_CampaignNetworkComponent.c.
Unload supplies at a base
[in] | vehicleID | Vehicle entity ID |
[in] | playerID | Vehicle entity ID |
[in] | baseID | Vehicle entity ID |
Definition at line 654 of file SCR_CampaignNetworkComponent.c.
protected void RpcDo_AddRadio | ( | RplId | ID | ) |
Definition at line 241 of file SCR_CampaignNetworkComponent.c.
void RpcDo_PlayerEnableShowingSpawnPosition | ( | bool | enable | ) |
[in] | enable |
Definition at line 1107 of file SCR_CampaignNetworkComponent.c.
protected void RpcDo_PlayerFeedback | ( | int | msgID | ) |
Show notification about request result to the requester
[in] | msgID | Message ID (see ECampaignClientNotificationID) |
Definition at line 896 of file SCR_CampaignNetworkComponent.c.
Show notification about request result to the requester
[in] | msgID | Message ID (see ECampaignClientNotificationID) |
[in] | baseID |
Definition at line 918 of file SCR_CampaignNetworkComponent.c.
Show notification about request result to the requester
[in] | msgID | Message ID (see ECampaignClientNotificationID) |
[in] | value | |
[in] | baseID |
Definition at line 907 of file SCR_CampaignNetworkComponent.c.
void RpcDo_PlayRadioMsg | ( | SCR_ERadioMsg | msg, |
int | factionId, | ||
int | baseCallsign, | ||
int | callerCallsign, | ||
int | calledCallsign, | ||
int | param, | ||
float | seed, | ||
float | quality | ||
) |
[in] | msg | |
[in] | factionId | |
[in] | baseCallsign | |
[in] | callerCallsign | |
[in] | calledCallsign | |
[in] | param | |
[in] | seed | |
[in] | quality |
Definition at line 1217 of file SCR_CampaignNetworkComponent.c.
protected void RpcDo_VehicleSpawnHint | ( | int | hintID | ) |
Definition at line 1054 of file SCR_CampaignNetworkComponent.c.
void SendPlayerMessage | ( | SCR_ERadioMsg | msgType, |
int | baseCallsign = SCR_MilitaryBaseComponent.INVALID_BASE_CALLSIGN , |
||
int | calledID = SCR_CampaignMilitaryBaseComponent.INVALID_PLAYER_INDEX , |
||
bool | public = true , |
||
int | param = SCR_CampaignRadioMsg.INVALID_RADIO_MSG_PARAM , |
||
bool | checkHQReached = false |
||
) |
[in] | msgType | |
[in] | baseCallsign | |
[in] | calledID | |
[in] | public | |
[in] | param | |
[in] | checkHQReached |
Definition at line 766 of file SCR_CampaignNetworkComponent.c.
protected void SendToVehicleOccupants | ( | ENotification | messageID, |
IEntity | vehicleEntity, | ||
int | playerID, | ||
int | number = 0 |
||
) |
[in] | messageID | |
[in] | vehicleEntity | entity of vehicle |
[in] | playerID | ID of player to notify about |
[in] | number | optional second parameter for another int number |
Definition at line 451 of file SCR_CampaignNetworkComponent.c.
void SendVehicleSpawnHint | ( | int | hintID | ) |
[in] | hintID |
Definition at line 1047 of file SCR_CampaignNetworkComponent.c.
void SetLastHQRadioMessageTimestamp | ( | WorldTimestamp | time | ) |
[in] | time |
Definition at line 843 of file SCR_CampaignNetworkComponent.c.
void SetLastRequestTimestamp | ( | WorldTimestamp | timestamp | ) |
[in] | request | cooldown timestamp |
Definition at line 76 of file SCR_CampaignNetworkComponent.c.
void StartLoading | ( | RplId | suppliesID, |
int | supplies, | ||
bool | IsUnloading = false |
||
) |
[in] | suppliesID | |
[in] | supplies | |
[in] | IsUnloading |
Definition at line 156 of file SCR_CampaignNetworkComponent.c.
void StopLoading | ( | RplId | suppliesID, |
bool | IsUnloading = false |
||
) |
[in] | suppliesID | |
[in] | IsUnloading |
Definition at line 166 of file SCR_CampaignNetworkComponent.c.
void ToggleBaseCapture | ( | notnull SCR_CampaignMilitaryBaseComponent | base, |
bool | isBeingCaptured | ||
) |
[in] | base | |
[in] | isBeingCaptured |
Definition at line 348 of file SCR_CampaignNetworkComponent.c.
void UnloadSupplies | ( | RplId | suppliesID, |
IEntity | player, | ||
SCR_CampaignMilitaryBaseComponent | base, | ||
int | amount = 0 |
||
) |
Send server request to unload supplies at a base
[in] | truckID | Unique ID identifying the supply truck |
[in] | player | Player trying to unload supplies |
[in] | base | Base at which the supplies are being unloaded |
Definition at line 177 of file SCR_CampaignNetworkComponent.c.
void ~SCR_CampaignNetworkComponent | ( | ) |
Definition at line 1357 of file SCR_CampaignNetworkComponent.c.
protected bool m_bFirstSpawn = true |
Definition at line 24 of file SCR_CampaignNetworkComponent.c.
protected WorldTimestamp m_fLastAssetRequestTimestamp |
Definition at line 43 of file SCR_CampaignNetworkComponent.c.
protected WorldTimestamp m_fLastHQRadioMessageTimestamp |
Definition at line 46 of file SCR_CampaignNetworkComponent.c.
protected float m_fNoRewardSupplies |
Definition at line 29 of file SCR_CampaignNetworkComponent.c.
protected int m_iTotalSuppliesDelivered |
Definition at line 31 of file SCR_CampaignNetworkComponent.c.
SCR_CampaignNetworkComponentClass m_PlayerController |
Takes care of Campaign-specific server <> client communication and requests.
protected RplComponent m_RplComponent |
Definition at line 23 of file SCR_CampaignNetworkComponent.c.
protected vector m_vLastLoadedAt |
Definition at line 26 of file SCR_CampaignNetworkComponent.c.
protected vector m_vLastUnloadedAt |
Definition at line 27 of file SCR_CampaignNetworkComponent.c.
SCR_CampaignNetworkComponentClass NO_SPACE |
SCR_CampaignNetworkComponentClass OUT_OF_STOCK |
SCR_CampaignNetworkComponentClass SUPPLIES_LOADED |
SCR_CampaignNetworkComponentClass SUPPLIES_UNLOADED |
SCR_CampaignNetworkComponentClass VEHICLE_SPAWNED |
Used to identify various notifications for client.