|
Arma Reforger Script API
|
Map marker manager, keeps array of markers and takes care of synchronization Attached to GameMode entity. More...
Public Member Functions | |
| SCR_MapMarkerConfig | GetMarkerConfig () |
| array< SCR_MapMarkerBase > | GetStaticMarkers () |
| array< SCR_MapMarkerBase > | GetDisabledMarkers () |
| array< SCR_MapMarkerEntity > | GetDynamicMarkers () |
| SCR_MapMarkerBase | GetMarkerByWidget (Widget w) |
| SCR_MapMarkerBase | GetStaticMarkerByID (int markerID) |
| SCR_MapMarkerBase | GetDisabledMarkerByID (int markerID) |
| SCR_MapMarkerEntity | GetDynamicMarkerByTarget (SCR_EMapMarkerType type, IEntity target) |
| void | InsertStaticMarkerByType (SCR_EMapMarkerType type, int worldX, int worldY, bool isLocal, int configId=-1, int factionFlags=0, bool isServerMarker=false) |
| SPAWN/REMOVE API. | |
| void | InsertStaticMarker (SCR_MapMarkerBase marker, bool isLocal, bool isServerMarker=false) |
| Insert customized static marker. | |
| SCR_MapMarkerBase | PrepareMilitaryMarker (EMilitarySymbolIdentity faction, EMilitarySymbolDimension dimension, EMilitarySymbolIcon typeFlags) |
| Prepare military marker based on existing configure attributes within marker config. | |
| SCR_MapMarkerEntity | InsertDynamicMarker (SCR_EMapMarkerType type, IEntity entity, int configId=-1) |
| Authority only. | |
| void | RemoveStaticMarker (SCR_MapMarkerBase marker) |
| Remove a static marker. | |
| void | RemoveDynamicMarker (notnull SCR_MapMarkerEntity ent) |
| Authority only. | |
| void | AssignMarkerUID (SCR_MapMarkerBase marker) |
| void | SetMarkerStreamRules (notnull SCR_MapMarkerEntity marker) |
| Network streaming rules for the marker Authority only -> Called when marker faction is assigned. | |
| void | SetStreamRulesForPlayer (int playerID) |
| Network streaming rules of all markers of player Authority only -> Set when player is spawned. | |
| void | EnableUpdate (bool state) |
| Set manager to run UI updates for markers. | |
| void | SetStaticMarkerDisabled (notnull SCR_MapMarkerBase marker, bool state) |
| Enable/disable static marker. | |
| void | RegisterDynamicMarker (SCR_MapMarkerEntity markerEnt) |
| Registers the marker within manager, called by the marker entity. | |
| void | UnregisterDynamicMarker (SCR_MapMarkerEntity markerEnt) |
| Unregisters the marker within manager, called by the marker entity. | |
| void | Update (float timeSlice) |
| void | OnAddSynchedMarker (SCR_MapMarkerBase marker) |
| RPC result of marker add broadcast Is an event and should NOT be called directly, it is only public since server needs to call it from SCR_MapMarkerSyncComponent. | |
| void | OnRemoveSynchedMarker (int markerID) |
| RPC result of marker remove broadcast Is an event and should NOT be called directly, it is only public since server needs to call it from SCR_MapMaprkerSyncComponent. | |
| void | OnAskAddStaticMarker (SCR_MapMarkerBase markerData) |
| Server side call from sync component for RPC marker add broadcast. | |
| void | OnAskRemoveStaticMarker (int markerID) |
| Server side call from sync component for RPC marker remove broadcast. | |
| void | OnPlayerFactionChanged_S (int playerID, SCR_PlayerFactionAffiliationComponent playerComponent, Faction faction) |
| Faction manager event -> server only. | |
| SCR_ScriptProfanityFilterRequestCallback | RequestProfanityFilter (string text) |
| SCR_ScriptProfanityFilterRequestCallback | RequestProfanityFilter (notnull array< string > textsToFilter) |
| Profanity filter processing that is intended to do multiple strings at once. | |
| override void | OnPlayerDisconnected (int playerId, KickCauseCode cause, int timeout) |
| Called after a player is disconnected. | |
| override void | OnPostInit (IEntity owner) |
| void | ~SCR_MapMarkerManagerComponent () |
Public Member Functions inherited from SCR_BaseGameModeComponent | |
| SCR_BaseGameMode | GetGameMode () |
| void | OnGameEnd () |
| Called on all machines when the world ends. | |
| void | OnGameStateChanged (SCR_EGameModeState state) |
| Called when game mode state changes called on all machines. | |
| void | OnGameModeStart () |
| Called on every machine when game mode starts. | |
| void | OnGameModeEnd (SCR_GameModeEndData data) |
| Called when game mode ends. | |
| void | OnPlayerConnected (int playerId) |
| Called after a player is connected. | |
| void | OnPlayerAuditSuccess (int playerId) |
| Event is called when player connecting Session hosting current Game Mode where is required authentication verification via. | |
| void | OnPlayerAuditFail (int playerId) |
| Event is called when player connecting Session hosting current Game Mode AuditFail() call may be called under two occasions: 1) verification is required but failed (account is not valid, player is banned, internet issues) 2) player cannot be verified as authentication is not required or possible - where it may be valid behavior (server online connectivity turned off for example) Basically non-audited player cannot access persistency/ etc. | |
| void | OnPlayerAuditTimeouted (int playerId) |
| Event is called when player connected to Session was kicked and did not reconnected in time This mean that slot reservation can be canceled. | |
| void | OnPlayerAuditRevived (int playerId) |
| Event is called when player reconnected successfully back to Session after kick This mean that slot reservation need to be finished (closed). | |
| void | OnPlayerRegistered (int playerId) |
| Called on every machine after a player is registered (identity, name etc.). | |
| bool | PreparePlayerEntity_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, SCR_SpawnData data, IEntity entity) |
| void | OnSpawnPlayerEntityFailure_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, IEntity entity, SCR_SpawnData data, SCR_ESpawnResult reason) |
| void | OnPlayerSpawnFinalize_S (SCR_SpawnRequestComponent requestComponent, SCR_SpawnHandlerComponent handlerComponent, SCR_SpawnData data, IEntity entity) |
| bool | HandlePlayerKilled (int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator instigator) |
| See SCR_BaseGameMode.HandlePlayerKilled. | |
| void | OnPlayerKilled (notnull SCR_InstigatorContextData instigatorContextData) |
| Called after a player gets killed. | |
| void | OnPlayerKilledHandled (int playerId, IEntity playerEntity, IEntity killerEntity, notnull Instigator instigator) |
| Called after player gets killed in cases where the kill was handled by the game mode, supressing the default OnPlayerKilled behaviour. | |
| void | OnPlayerDeleted (int playerId, IEntity player) |
| Called after a player gets deleted. | |
| void | OnPlayerRoleChange (int playerId, EPlayerRole roleFlags) |
| Called when player role changes. | |
| void | OnWorldPostProcess (World world) |
| Called once loading of all entities of the world have been finished (still within the loading) | |
| void | OnControllableSpawned (IEntity entity) |
| When a controllable entity is spawned, this event is raised. | |
| void | OnControllableDestroyed (notnull SCR_InstigatorContextData instigatorContextData) |
| When a controllable entity is destroyed, this event is raised. | |
| void | OnControllableDeleted (IEntity entity) |
| Prior to a controllable entity being DELETED, this event is raised. | |
| void | SCR_BaseGameModeComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
Static Public Member Functions | |
| static SCR_MapMarkerManagerComponent | GetInstance () |
| GETTERS. | |
Protected Member Functions | |
| void | HandleStreamOut (SCR_MapMarkerEntity marker, PlayerController pController, bool state) |
| Enable stream out of specific marker for target identity. | |
| bool | FindMarkerSyncComponent () |
| void | ConnectToMarkerManagerSystem () |
| void | DisconnectFromMarkerManagerSystem () |
| void | RPC_DoAddStaticMarker (SCR_MapMarkerBase markerData) |
| void | RPC_DoRemoveStaticMarker (int markerID) |
| void | OnMapPanEnd (float x, float y) |
| void | CheckMarkersUserRestrictions () |
| void | OnMapOpen (MapConfiguration mapConfig) |
| SocialComponent | GetSocialComponent () |
| void | OnFilteredCallback (array< string > texts) |
| override bool | RplSave (ScriptBitWriter writer) |
| override bool | RplLoad (ScriptBitReader reader) |
| override void | EOnInit (IEntity owner) |
Protected Attributes | |
| ResourceName | m_sMarkerCfgPath |
| ref array< ref SCR_MapMarkerBase > | m_aStaticMarkers = {} |
| ref array< ref SCR_MapMarkerBase > | m_aDisabledMarkers = {} |
| ref array< SCR_MapMarkerEntity > | m_aDynamicMarkers = {} |
| ref array< ref SCR_ScriptProfanityFilterRequestCallback > | m_aProfanityCallbacks = {} |
| int | m_iID |
| vector | m_vVisibleFrameMin |
| vector | m_vVisibleFrameMax |
| SCR_MapEntity | m_MapEntity |
| SCR_MapMarkerSyncComponent | m_MarkerSyncComp |
| ref SCR_MapMarkerConfig | m_MarkerCfg |
Protected Attributes inherited from SCR_BaseGameModeComponent | |
| SCR_BaseGameMode | m_pGameMode |
| The game mode entity this component is attached to. | |
Static Protected Attributes | |
| static SCR_MapMarkerManagerComponent | s_Instance |
Map marker manager, keeps array of markers and takes care of synchronization Attached to GameMode entity.
| void SCR_MapMarkerManagerComponent.~SCR_MapMarkerManagerComponent | ( | ) |
| void SCR_MapMarkerManagerComponent.AssignMarkerUID | ( | SCR_MapMarkerBase | marker | ) |
|
protected |
|
protected |
|
protected |
| void SCR_MapMarkerManagerComponent.EnableUpdate | ( | bool | state | ) |
Set manager to run UI updates for markers.
| [in] | state |
|
protected |
|
protected |
| SCR_MapMarkerBase SCR_MapMarkerManagerComponent.GetDisabledMarkerByID | ( | int | markerID | ) |
| [in] | markerID |
| array< SCR_MapMarkerBase > SCR_MapMarkerManagerComponent.GetDisabledMarkers | ( | ) |
| SCR_MapMarkerEntity SCR_MapMarkerManagerComponent.GetDynamicMarkerByTarget | ( | SCR_EMapMarkerType | type, |
| IEntity | target ) |
| [in] | type | |
| [in] | target |
| array< SCR_MapMarkerEntity > SCR_MapMarkerManagerComponent.GetDynamicMarkers | ( | ) |
|
static |
GETTERS.
| SCR_MapMarkerBase SCR_MapMarkerManagerComponent.GetMarkerByWidget | ( | Widget | w | ) |
| [in] | w |
| SCR_MapMarkerConfig SCR_MapMarkerManagerComponent.GetMarkerConfig | ( | ) |
|
protected |
| SCR_MapMarkerBase SCR_MapMarkerManagerComponent.GetStaticMarkerByID | ( | int | markerID | ) |
| [in] | markerID |
| array< SCR_MapMarkerBase > SCR_MapMarkerManagerComponent.GetStaticMarkers | ( | ) |
|
protected |
Enable stream out of specific marker for target identity.
| [in] | marker | is the subject marker |
| [in] | pController | PlayerController is the subject player's controller |
| [in] | state | sets target state of stream out -> enabled if true, meaning that replication will stream out the subject |
| SCR_MapMarkerEntity SCR_MapMarkerManagerComponent.InsertDynamicMarker | ( | SCR_EMapMarkerType | type, |
| IEntity | entity, | ||
| int | configId = -1 ) |
Authority only.
| [in] | type | |
| [in] | entity | |
| [in] | configId |
| void SCR_MapMarkerManagerComponent.InsertStaticMarker | ( | SCR_MapMarkerBase | marker, |
| bool | isLocal, | ||
| bool | isServerMarker = false ) |
Insert customized static marker.
| [in] | marker | is the subject |
| [in] | isLocal | determines whether the marker is synchronised to other players or local |
| [in] | isServerMarker | determines whether the marker is spawned by server and should not count towards marker limits (different from server-client spawning his own markers) |
| void SCR_MapMarkerManagerComponent.InsertStaticMarkerByType | ( | SCR_EMapMarkerType | type, |
| int | worldX, | ||
| int | worldY, | ||
| bool | isLocal, | ||
| int | configId = -1, | ||
| int | factionFlags = 0, | ||
| bool | isServerMarker = false ) |
SPAWN/REMOVE API.
Insert predefined type of static marker
| [in] | type | is primary marker type |
| [in] | worldX | is x world poosition |
| [in] | worldY | is y world poosition |
| [in] | isLocal | determiens whether the marker will be created client side only or synchronized to other eligible players |
| [in] | configId | is secondary marker ID used to select a predefined subtype |
| [in] | factionFLags | determine which factions are able to see the marker, 0 for everyone |
| void SCR_MapMarkerManagerComponent.OnAddSynchedMarker | ( | SCR_MapMarkerBase | marker | ) |
RPC result of marker add broadcast Is an event and should NOT be called directly, it is only public since server needs to call it from SCR_MapMarkerSyncComponent.
| [in] | marker |
| void SCR_MapMarkerManagerComponent.OnAskAddStaticMarker | ( | SCR_MapMarkerBase | markerData | ) |
Server side call from sync component for RPC marker add broadcast.
| [in] | markerData |
| void SCR_MapMarkerManagerComponent.OnAskRemoveStaticMarker | ( | int | markerID | ) |
Server side call from sync component for RPC marker remove broadcast.
| [in] | markerID |
|
protected |
|
protected |
|
protected |
| override void SCR_MapMarkerManagerComponent.OnPlayerDisconnected | ( | int | playerId, |
| KickCauseCode | cause, | ||
| int | timeout ) |
Called after a player is disconnected.
| [in] | playerId | PlayerId of disconnected player. |
| [in] | cause | Reason player disconnected |
| [in] | timeout | Timeout for when players are allowed to connect again. -1 means Ban without an assigned timeout |
Implements SCR_BaseGameModeComponent.
| void SCR_MapMarkerManagerComponent.OnPlayerFactionChanged_S | ( | int | playerID, |
| SCR_PlayerFactionAffiliationComponent | playerComponent, | ||
| Faction | faction ) |
Faction manager event -> server only.
| [in] | playerID | |
| [in] | playerComponent | |
| [in] | faction |
| override void SCR_MapMarkerManagerComponent.OnPostInit | ( | IEntity | owner | ) |
| void SCR_MapMarkerManagerComponent.OnRemoveSynchedMarker | ( | int | markerID | ) |
RPC result of marker remove broadcast Is an event and should NOT be called directly, it is only public since server needs to call it from SCR_MapMaprkerSyncComponent.
| [in] | markerID |
| SCR_MapMarkerBase SCR_MapMarkerManagerComponent.PrepareMilitaryMarker | ( | EMilitarySymbolIdentity | faction, |
| EMilitarySymbolDimension | dimension, | ||
| EMilitarySymbolIcon | typeFlags ) |
Prepare military marker based on existing configure attributes within marker config.
| [in] | faction | |
| [in] | dimension | |
| [in] | typeFlags |
| void SCR_MapMarkerManagerComponent.RegisterDynamicMarker | ( | SCR_MapMarkerEntity | markerEnt | ) |
Registers the marker within manager, called by the marker entity.
| [in] | markerEnt |
| void SCR_MapMarkerManagerComponent.RemoveDynamicMarker | ( | notnull SCR_MapMarkerEntity | ent | ) |
Authority only.
| [in] | ent |
| void SCR_MapMarkerManagerComponent.RemoveStaticMarker | ( | SCR_MapMarkerBase | marker | ) |
Remove a static marker.
| [in] | marker |
| SCR_ScriptProfanityFilterRequestCallback SCR_MapMarkerManagerComponent.RequestProfanityFilter | ( | notnull array< string > | textsToFilter | ) |
Profanity filter processing that is intended to do multiple strings at once.
| [in] | textsToFilter |
| SCR_ScriptProfanityFilterRequestCallback SCR_MapMarkerManagerComponent.RequestProfanityFilter | ( | string | text | ) |
|
protected |
|
protected |
|
protected |
|
protected |
| void SCR_MapMarkerManagerComponent.SetMarkerStreamRules | ( | notnull SCR_MapMarkerEntity | marker | ) |
Network streaming rules for the marker Authority only -> Called when marker faction is assigned.
| [in] | marker |
| void SCR_MapMarkerManagerComponent.SetStaticMarkerDisabled | ( | notnull SCR_MapMarkerBase | marker, |
| bool | state ) |
Enable/disable static marker.
| [in] | marker | |
| [in] | state |
| void SCR_MapMarkerManagerComponent.SetStreamRulesForPlayer | ( | int | playerID | ) |
Network streaming rules of all markers of player Authority only -> Set when player is spawned.
| [in] | playerID |
| void SCR_MapMarkerManagerComponent.UnregisterDynamicMarker | ( | SCR_MapMarkerEntity | markerEnt | ) |
Unregisters the marker within manager, called by the marker entity.
| [in] | markerEnt |
| void SCR_MapMarkerManagerComponent.Update | ( | float | timeSlice | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |