|
Arma Reforger Script API
|
Map marker object base class Created through SCR_MapMarkerManagerComponent API. More...
Public Member Functions | |
| Widget | GetRootWidget () |
| SCR_EMapMarkerType | GetType () |
| void | SetType (SCR_EMapMarkerType type) |
| int | GetMarkerID () |
| void | SetMarkerID (int id) |
| int | GetMarkerConfigID () |
| void | SetMarkerConfigID (int id) |
| int | GetMarkerOwnerID () |
| void | SetMarkerOwnerID (int playerID) |
| int | GetFlags () |
| void | SetFlags (int flags) |
| int | GetMarkerFactionFlags () |
| Get faction flags representing indices of factions within FactionManager prefab. | |
| void | AddMarkerFactionFlags (int flags) |
| Add faction index to flags which you can acquire by calling GetFactionIndex() | |
| void | SetMarkerFactionFlags (int flags) |
| Set faction flags directly without converting the faction indices. | |
| bool | IsFaction (int factionID) |
| Check whether the marker is one of the defined list of factions. | |
| void | GetWorldPos (out int pos[2]) |
| void | SetWorldPos (int posX, int posY) |
| int | GetRotation () |
| void | SetRotation (int angle) |
| int | GetColorEntry () |
| int | GetIconEntry () |
| void | SetColorEntry (int colorEntry) |
| void | SetIconEntry (int iconEntry) |
| string | GetCustomText () |
| void | SetCustomText (string text) |
| WorldTimestamp | GetTimestamp () |
| void | SetTimestamp (WorldTimestamp timestamp) |
| void | SetTimestampVisibility (bool isVisible) |
| bool | IsTimestampVisible () |
| void | SetServerDisabled (bool state) |
| Disable marker UI display on server -> for dedicated servers(no UI) or hosted server enemy faction. | |
| void | SetCanBeRemovedByOwner (bool state) |
| Disable posibility to remove marker from map by owner. | |
| bool | CanBeRemovedByOwner () |
| void | SetUpdateDisabled (bool state) |
| Disable marker update based on visibility on screen, overriden by m_bIsBlocked. | |
| void | SetBlocked (bool state) |
| Sets if marker is blocked (this changes visibility) | |
| bool | GetBlocked () |
| Gets if marker is blocked (this changes visibility) | |
| void | SetVisible (bool state) |
| Used for temporary reasons such as hiding original marker during edit, not for filtering visiblity. | |
| void | SetDragged (bool state) |
| Set dragged state. | |
| SCR_MapMarkerWidgetComponent | GetMarkerComponent () |
| bool | TestVisibleFrame (vector visibleMin, vector visibleMax) |
| Test whether the marker is visible on screen. | |
| void | RequestProfanityFilter () |
| Requests profanity filtering for the text of this marker. | |
| void | OnCreateMarker (bool skipProfanityFilter=false) |
| Fetch marker definition from config & create widget. | |
| void | OnDelete () |
| void | LayerChangeLogic (int layerID) |
| bool | OnUpdate (vector visibleMin=vector.Zero, vector visibleMax=vector.Zero) |
| Called from SCR_MapMarkerManagerComponent. | |
Static Public Member Functions | |
| static bool | Extract (SCR_MapMarkerBase instance, ScriptCtx ctx, SSnapSerializerBase snapshot) |
| static bool | Inject (SSnapSerializerBase snapshot, ScriptCtx ctx, SCR_MapMarkerBase instance) |
| static void | Encode (SSnapSerializerBase snapshot, ScriptCtx ctx, ScriptBitSerializer packet) |
| static bool | Decode (ScriptBitSerializer packet, ScriptCtx ctx, SSnapSerializerBase snapshot) |
| static bool | SnapCompare (SSnapSerializerBase lhs, SSnapSerializerBase rhs, ScriptCtx ctx) |
| static bool | PropCompare (SCR_MapMarkerBase instance, SSnapSerializerBase snapshot, ScriptCtx ctx) |
Protected Member Functions | |
| void | OnProfanityFilteredCallback (array< string > texts) |
| void | OnMapClosed (MapConfiguration config) |
| void | OnMapLayerChanged (int layerID) |
Protected Attributes | |
| SCR_EMapMarkerType | m_eType |
| int | m_iMarkerID = -1 |
| int | m_iConfigID = -1 |
| int | m_iMarkerOwnerID = -1 |
| int | m_iFlags |
| int | m_iPosWorldX |
| int | m_iPosWorldY |
| int | m_iFactionFlags |
| int | m_iColorEntry |
| int | m_iIconEntry |
| int | m_iRotation |
| string | m_sCustomText |
| WorldTimestamp | m_Timestamp |
| bool | m_bIsTimestampVisible |
| bool | m_bIsServerSideDisabled |
| bool | m_bCanBeRemovedByOwner = true |
| bool | m_bTestVisibleFrame = true |
| bool | m_bIsUpdateDisabled |
| bool | m_bIsDragged |
| bool | m_bIsBlocked |
| int | m_iScreenX |
| int | m_iScreenY |
| SCR_MapMarkerEntryConfig | m_ConfigEntry |
| SCR_MapEntity | m_MapEntity |
| ref Widget | m_wRoot |
| SCR_MapMarkerWidgetComponent | m_MarkerWidgetComp |
| ref Color | m_Color |
Static Protected Attributes | |
| const int | SERIALIZED_BYTES = 34 |
Map marker object base class Created through SCR_MapMarkerManagerComponent API.
| void SCR_MapMarkerBase.AddMarkerFactionFlags | ( | int | flags | ) |
Add faction index to flags which you can acquire by calling GetFactionIndex()
| bool SCR_MapMarkerBase.CanBeRemovedByOwner | ( | ) |
|
static |
|
static |
|
static |
| bool SCR_MapMarkerBase.GetBlocked | ( | ) |
Gets if marker is blocked (this changes visibility)
| int SCR_MapMarkerBase.GetColorEntry | ( | ) |
| string SCR_MapMarkerBase.GetCustomText | ( | ) |
| int SCR_MapMarkerBase.GetFlags | ( | ) |
| int SCR_MapMarkerBase.GetIconEntry | ( | ) |
| SCR_MapMarkerWidgetComponent SCR_MapMarkerBase.GetMarkerComponent | ( | ) |
| int SCR_MapMarkerBase.GetMarkerConfigID | ( | ) |
| int SCR_MapMarkerBase.GetMarkerFactionFlags | ( | ) |
Get faction flags representing indices of factions within FactionManager prefab.
| int SCR_MapMarkerBase.GetMarkerID | ( | ) |
| int SCR_MapMarkerBase.GetMarkerOwnerID | ( | ) |
| Widget SCR_MapMarkerBase.GetRootWidget | ( | ) |
| int SCR_MapMarkerBase.GetRotation | ( | ) |
| WorldTimestamp SCR_MapMarkerBase.GetTimestamp | ( | ) |
| SCR_EMapMarkerType SCR_MapMarkerBase.GetType | ( | ) |
| void SCR_MapMarkerBase.GetWorldPos | ( | out int | pos[2] | ) |
|
static |
| bool SCR_MapMarkerBase.IsFaction | ( | int | factionID | ) |
Check whether the marker is one of the defined list of factions.
| bool SCR_MapMarkerBase.IsTimestampVisible | ( | ) |
| void SCR_MapMarkerBase.LayerChangeLogic | ( | int | layerID | ) |
| void SCR_MapMarkerBase.OnCreateMarker | ( | bool | skipProfanityFilter = false | ) |
Fetch marker definition from config & create widget.
| [in] | skipProfanityFilter | determines whether the marker text should be checked for profanity |
| void SCR_MapMarkerBase.OnDelete | ( | ) |
|
protected |
|
protected |
|
protected |
| bool SCR_MapMarkerBase.OnUpdate | ( | vector | visibleMin = vector::Zero, |
| vector | visibleMax = vector::Zero ) |
Called from SCR_MapMarkerManagerComponent.
|
static |
| void SCR_MapMarkerBase.RequestProfanityFilter | ( | ) |
Requests profanity filtering for the text of this marker.
| void SCR_MapMarkerBase.SetBlocked | ( | bool | state | ) |
Sets if marker is blocked (this changes visibility)
| void SCR_MapMarkerBase.SetCanBeRemovedByOwner | ( | bool | state | ) |
Disable posibility to remove marker from map by owner.
| void SCR_MapMarkerBase.SetColorEntry | ( | int | colorEntry | ) |
| void SCR_MapMarkerBase.SetCustomText | ( | string | text | ) |
| void SCR_MapMarkerBase.SetDragged | ( | bool | state | ) |
Set dragged state.
| void SCR_MapMarkerBase.SetFlags | ( | int | flags | ) |
| void SCR_MapMarkerBase.SetIconEntry | ( | int | iconEntry | ) |
| void SCR_MapMarkerBase.SetMarkerConfigID | ( | int | id | ) |
| void SCR_MapMarkerBase.SetMarkerFactionFlags | ( | int | flags | ) |
Set faction flags directly without converting the faction indices.
| void SCR_MapMarkerBase.SetMarkerID | ( | int | id | ) |
| void SCR_MapMarkerBase.SetMarkerOwnerID | ( | int | playerID | ) |
| void SCR_MapMarkerBase.SetRotation | ( | int | angle | ) |
| void SCR_MapMarkerBase.SetServerDisabled | ( | bool | state | ) |
Disable marker UI display on server -> for dedicated servers(no UI) or hosted server enemy faction.
| void SCR_MapMarkerBase.SetTimestamp | ( | WorldTimestamp | timestamp | ) |
| [in] | timestamp | when the marker was created |
| void SCR_MapMarkerBase.SetTimestampVisibility | ( | bool | isVisible | ) |
| void SCR_MapMarkerBase.SetType | ( | SCR_EMapMarkerType | type | ) |
| void SCR_MapMarkerBase.SetUpdateDisabled | ( | bool | state | ) |
Disable marker update based on visibility on screen, overriden by m_bIsBlocked.
| void SCR_MapMarkerBase.SetVisible | ( | bool | state | ) |
Used for temporary reasons such as hiding original marker during edit, not for filtering visiblity.
| void SCR_MapMarkerBase.SetWorldPos | ( | int | posX, |
| int | posY ) |
|
static |
| bool SCR_MapMarkerBase.TestVisibleFrame | ( | vector | visibleMin, |
| vector | visibleMax ) |
Test whether the marker is visible on screen.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |