![]() |
|
Takes care of Campaign-specific server <> client communication and requests. More...
Public Member Functions | |
| WorldTimestamp | GetLastRequestTimestamp () |
| SCR_ResourceComponent | GetLastLoadedComponent () |
| void | SetLastRequestTimestamp (WorldTimestamp timestamp) |
| void | RepairComposition (int index, int repairCost, int destructibleID, SCR_SiteSlotEntity slotEnt, notnull SCR_CampaignMilitaryBaseComponent base) |
| Repair destroyed mandatory part of composition. | |
| 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) |
| Server side method used to send a notification to the owner of the controller on which component resides. | |
| void | SetLastHQRadioMessageTimestamp (WorldTimestamp time) |
| void | SendVehicleSpawnHint (int hintID) |
| void | RespawnLocationPopup (int baseID) |
| void | OnPlayerAliveStateChanged (bool alive) |
| void | PlayTaskNotificationMsg (SCR_ETaskNotification taskNotification, SCR_ETaskNotificationMsg msg, int factionId, int baseCallsign, int callerGroupId, int calledGroupId, int grid, float quality, int playerID) |
| Play task notification msg. | |
| void | PlayRadioMsg (SCR_ERadioMsg msg, int FactionId, int baseCallsign, int callerCallsignCompany, int callerCallsignPlatoon, int callerCallsignSquad, int callerCallsignCharacter, int calledCallsignCompany, int calledCallsignPlatoon, int calledCallsignSquad, int calledCallsignCharacter, bool isPublic, int param, float seed, float quality, int playerID) |
| void | ResetSavedSupplies () |
| void | ~SCR_CampaignNetworkComponent () |
Static Public Member Functions | |
| static SCR_CampaignNetworkComponent | GetCampaignNetworkComponent (int playerID) |
| static ScriptInvokerInt3 | GetOnSuppliesDelivered () |
| static ScriptInvokerTransferSupplies | GetOnTransferSupplies () |
Static Public Attributes | |
| static const int | SUPPLY_DELIVERY_XP_PERCENT = 100 |
| static const int | SUPPLY_DELIVERY_THRESHOLD_SQ = 200 * 200 |
Protected Member Functions | |
| bool | IsProxy () |
| void | RpcAsk_RepairComposition (int index, int repairCost, int destructibleID, RplId slotID, RplId baseID) |
| Repair damaged entity in composition. | |
| int | CompressCallsign (int company, int platoon, int squad, int character) |
| void | DecompressCallsign (int callsign, out int company, out int platoon, out int squad, out int character) |
| void | RpcDo_PlayerFeedback (int msgID) |
| Show notification about request result to the requester. | |
| void | RpcDo_PlayerFeedbackValueBase (int msgID, float value, int baseID) |
| Show notification about request result to the requester. | |
| void | RpcDo_PlayerFeedbackBase (int msgID, int baseID) |
| Show notification about request result to the requester. | |
| void | PlayerFeedbackImpl (int msgID, float value=0, int assetID=-1, int baseID=-1) |
| Show notification about request result to the requester. | |
| void | RpcDo_VehicleSpawnHint (int hintID) |
| void | RpcDo_UpdatePlayerSpawnHint (bool show, vector position) |
| void | HandleRadioRespawnTimer (RplId spawnPointId) |
| void | RpcAsk_HandleRadioRespawnTimer (RplId selectedSpawnPointId) |
| void | RpcDo_PlayTaskNotificationMsg (SCR_ETaskNotification taskNotification, SCR_ETaskNotificationMsg msg, int factionId, int baseCallsign, int callerGroupId, int calledGroupId, int grid, float quality) |
| void | RpcDo_PlayRadioMsg (SCR_ERadioMsg msg, int factionId, int baseCallsign, int callerCallsign, int calledCallsign, int param, float seed, float quality) |
| void | OnBeforePlayerInteraction (EResourcePlayerInteractionType interactionType, PlayerController playerController, SCR_ResourceComponent resourceComponentFrom, SCR_ResourceComponent resourceComponentTo, EResourceType resourceType, float resourceValue) |
| Callback. | |
| void | OnPlayerSuppliesInteraction (EResourcePlayerInteractionType interactionType, PlayerController playerController, SCR_ResourceComponent resourceComponentFrom, SCR_ResourceComponent resourceComponentTo, EResourceType resourceType, float resourceValue) |
| void | OnSuppliesLoaded (vector position, float amount, notnull SCR_ResourceComponent resourceComponentTo) |
| void | OnSuppliesUnloaded (vector position, float amount, int playerId, notnull SCR_ResourceComponent resourceComponentFrom, int assistantId=0) |
| override void | EOnInit (IEntity owner) |
| override void | OnPostInit (IEntity owner) |
Protected Attributes | |
| SCR_PlayerController | m_PlayerController |
| RplComponent | m_RplComponent |
| bool | m_bFirstSpawn = true |
| vector | m_vLastLoadedAt |
| SCR_ResourceComponent | m_LastLoadedComponent |
| float | m_fLoadedSupplyAmount |
| bool | m_bOrphanSuppliesLoaded |
| float | m_fNoRewardSupplies |
| int | m_iTotalSuppliesDelivered |
| WorldTimestamp | m_fLastAssetRequestTimestamp |
| WorldTimestamp | m_fLastHQRadioMessageTimestamp |
Static Protected Attributes | |
| static ref ScriptInvokerInt3 | s_OnSuppliesDelivered |
| static ref ScriptInvokerTransferSupplies | s_OnSuppliesTransferred |
Takes care of Campaign-specific server <> client communication and requests.
| void SCR_CampaignNetworkComponent.~SCR_CampaignNetworkComponent | ( | ) |
|
protected |
|
protected |
|
protected |
|
static |
| [in] | playerID |
| SCR_ResourceComponent SCR_CampaignNetworkComponent.GetLastLoadedComponent | ( | ) |
| WorldTimestamp SCR_CampaignNetworkComponent.GetLastRequestTimestamp | ( | ) |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
Callback.
| void SCR_CampaignNetworkComponent.OnPlayerAliveStateChanged | ( | bool | alive | ) |
| [in] | alive |
|
protected |
| [in] | interactionType | |
| [in] | playerController | |
| [in] | resourceComponentFrom | |
| [in] | resourceComponentTo | |
| [in] | resourceType | |
| [in] | resourceValue |
|
protected |
|
protected |
|
protected |
|
protected |
Show notification about request result to the requester.
| [in] | msgID | Message ID (see ECampaignClientNotificationID) |
| [in] | value | |
| [in] | assetID | |
| [in] | baseID |
| void SCR_CampaignNetworkComponent.PlayRadioMsg | ( | SCR_ERadioMsg | msg, |
| int | FactionId, | ||
| int | baseCallsign, | ||
| int | callerCallsignCompany, | ||
| int | callerCallsignPlatoon, | ||
| int | callerCallsignSquad, | ||
| int | callerCallsignCharacter, | ||
| int | calledCallsignCompany, | ||
| int | calledCallsignPlatoon, | ||
| int | calledCallsignSquad, | ||
| int | calledCallsignCharacter, | ||
| bool | isPublic, | ||
| int | param, | ||
| float | seed, | ||
| float | quality, | ||
| int | playerID ) |
| [in] | msg | |
| [in] | FactionId | |
| [in] | baseCallsign | |
| [in] | callerCallsignCompany | |
| [in] | callerCallsignPlatoon | |
| [in] | callerCallsignSquad | |
| [in] | callerCallsignCharacter | |
| [in] | calledCallsignCompany | |
| [in] | calledCallsignPlatoon | |
| [in] | calledCallsignSquad | |
| [in] | calledCallsignCharacter | |
| [in] | isPublic | |
| [in] | param | |
| [in] | seed | |
| [in] | quality | |
| [in] | playerID |
| void SCR_CampaignNetworkComponent.PlayTaskNotificationMsg | ( | SCR_ETaskNotification | taskNotification, |
| SCR_ETaskNotificationMsg | msg, | ||
| int | factionId, | ||
| int | baseCallsign, | ||
| int | callerGroupId, | ||
| int | calledGroupId, | ||
| int | grid, | ||
| float | quality, | ||
| int | playerID ) |
Play task notification msg.
| [in] | taskNotification | |
| [in] | msg | |
| [in] | factionId | |
| [in] | baseCallsign | |
| [in] | callerGroupId | |
| [in] | calledGroupId | |
| [in] | grid | |
| [in] | quality | |
| [in] | playerID |
| void SCR_CampaignNetworkComponent.RepairComposition | ( | int | index, |
| int | repairCost, | ||
| int | destructibleID, | ||
| SCR_SiteSlotEntity | slotEnt, | ||
| notnull SCR_CampaignMilitaryBaseComponent | base ) |
Repair destroyed mandatory part of composition.
| void SCR_CampaignNetworkComponent.ResetSavedSupplies | ( | ) |
| void SCR_CampaignNetworkComponent.RespawnLocationPopup | ( | int | baseID | ) |
| [in] | baseID |
|
protected |
|
protected |
Repair damaged entity in composition.
|
protected |
Show notification about request result to the requester.
| [in] | msgID | Message ID (see ECampaignClientNotificationID) |
|
protected |
Show notification about request result to the requester.
| [in] | msgID | Message ID (see ECampaignClientNotificationID) |
| [in] | baseID |
|
protected |
Show notification about request result to the requester.
| [in] | msgID | Message ID (see ECampaignClientNotificationID) |
| [in] | value | |
| [in] | baseID |
|
protected |
| [in] | msg | |
| [in] | factionId | |
| [in] | baseCallsign | |
| [in] | callerCallsign | |
| [in] | calledCallsign | |
| [in] | param | |
| [in] | seed | |
| [in] | quality |
|
protected |
|
protected |
|
protected |
| void SCR_CampaignNetworkComponent.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 ) |
Server side method used to send a notification to the owner of the controller on which component resides.
| [in] | msgType | |
| [in] | baseCallsign | |
| [in] | calledID | |
| [in] | public | |
| [in] | param | |
| [in] | checkHQReached |
| void SCR_CampaignNetworkComponent.SendVehicleSpawnHint | ( | int | hintID | ) |
| [in] | hintID |
| void SCR_CampaignNetworkComponent.SetLastHQRadioMessageTimestamp | ( | WorldTimestamp | time | ) |
| [in] | time |
| void SCR_CampaignNetworkComponent.SetLastRequestTimestamp | ( | WorldTimestamp | timestamp | ) |
| [in] | request | cooldown timestamp |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
static |
|
static |