136 int flag =
Math.Pow(2, factionID);
319 SCR_MapMarkerManagerComponent mapMarkerManager = SCR_MapMarkerManagerComponent.GetInstance();
320 if (!mapMarkerManager)
324 if (!profanityCallback)
361 m_ConfigEntry = SCR_MapMarkerManagerComponent.GetInstance().GetMarkerConfig().GetMarkerEntryConfigByType(
m_eType);
438 snapshot.SerializeInt(instance.
m_iFlags);
442 snapshot.SerializeBytes(instance.
m_eType, 1);
458 snapshot.SerializeInt(instance.
m_iFlags);
462 snapshot.SerializeBytes(instance.
m_eType, 1);
475 snapshot.EncodeString(packet);
476 snapshot.EncodeBool(packet);
477 snapshot.Serialize(packet, 8);
484 snapshot.DecodeString(packet);
485 snapshot.DecodeBool(packet);
486 snapshot.Serialize(packet, 8);
494 && lhs.CompareStringSnapshots(rhs)
495 && lhs.CompareSnapshots(rhs, 4 + 8);
505 && snapshot.CompareInt(instance.
m_iFlags)
509 && snapshot.Compare(instance.
m_eType, 1)
SCR_EAIThreatSectorFlags flags
ArmaReforgerScripted GetGame()
static ScriptInvokerBase< MapConfigurationInvoker > GetOnMapClose()
Get on map close invoker.
static ScriptInvokerInt GetOnLayerChanged()
Get on layer changed invoker.
static SCR_MapEntity GetMapInstance()
Get map entity instance.
void SetDragged(bool state)
Set dragged state.
void SetRotation(int angle)
void SetUpdateDisabled(bool state)
Disable marker update based on visibility on screen, overriden by m_bIsBlocked.
void SetMarkerOwnerID(int playerID)
void SetColorEntry(int colorEntry)
void OnCreateMarker(bool skipProfanityFilter=false)
void AddMarkerFactionFlags(int flags)
Add faction index to flags which you can acquire by calling GetFactionIndex().
void SetVisible(bool state)
Used for temporary reasons such as hiding original marker during edit, not for filtering visiblity.
void SetMarkerFactionFlags(int flags)
Set faction flags directly without converting the faction indices.
static bool Decode(ScriptBitSerializer packet, ScriptCtx ctx, SSnapSerializerBase snapshot)
bool IsFaction(int factionID)
Check whether the marker is one of the defined list of factions.
void SetIconEntry(int iconEntry)
SCR_MapMarkerWidgetComponent GetMarkerComponent()
void SetBlocked(bool state)
Sets if marker is blocked (this changes visibility).
static void Encode(SSnapSerializerBase snapshot, ScriptCtx ctx, ScriptBitSerializer packet)
bool TestVisibleFrame(vector visibleMin, vector visibleMax)
Test whether the marker is visible on screen.
static bool SnapCompare(SSnapSerializerBase lhs, SSnapSerializerBase rhs, ScriptCtx ctx)
bool GetBlocked()
Gets if marker is blocked (this changes visibility).
bool m_bIsServerSideDisabled
SCR_EMapMarkerType GetType()
WorldTimestamp GetTimestamp()
void SetTimestamp(WorldTimestamp timestamp)
void SetMarkerConfigID(int id)
SCR_MapEntity m_MapEntity
bool CanBeRemovedByOwner()
void SetCustomText(string text)
void GetWorldPos(out int pos[2])
const int SERIALIZED_BYTES
bool m_bCanBeRemovedByOwner
static bool PropCompare(SCR_MapMarkerBase instance, SSnapSerializerBase snapshot, ScriptCtx ctx)
void OnMapClosed(MapConfiguration config)
bool OnUpdate(vector visibleMin=vector.Zero, vector visibleMax=vector.Zero)
Called from SCR_MapMarkerManagerComponent.
void OnProfanityFilteredCallback(array< string > texts)
void SetType(SCR_EMapMarkerType type)
static bool Extract(SCR_MapMarkerBase instance, ScriptCtx ctx, SSnapSerializerBase snapshot)
void SetWorldPos(int posX, int posY)
SCR_MapMarkerWidgetComponent m_MarkerWidgetComp
void SetCanBeRemovedByOwner(bool state)
Disable posibility to remove marker from map by owner.
static bool Inject(SSnapSerializerBase snapshot, ScriptCtx ctx, SCR_MapMarkerBase instance)
void OnMapLayerChanged(int layerID)
void LayerChangeLogic(int layerID)
void SetTimestampVisibility(bool isVisible)
int GetMarkerFactionFlags()
Get faction flags representing indices of factions within FactionManager prefab.
bool IsTimestampVisible()
SCR_EMapMarkerType m_eType
SCR_MapMarkerEntryConfig m_ConfigEntry
void RequestProfanityFilter()
Requests profanity filtering for the text of this marker.
bool m_bIsTimestampVisible
void SetServerDisabled(bool state)
Disable marker UI display on server -> for dedicated servers(no UI) or hosted server enemy faction.
WorldTimestamp m_Timestamp