Show / Hide Table of Contents

Class MinimapComponent

Objects with this component will have a hoverable icon generated for displaying on client's minimap.

Inheritance
System.Object
WorldObjectComponent
MinimapComponent
Implements
ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IHasInteractions
Inherited Members
WorldObjectComponent.IsRPCAuthorized(IWorldObserver, AccessType, Object[])
WorldObjectComponent.PostInitialize()
WorldObjectComponent.OnCreate()
WorldObjectComponent.Tick()
WorldObjectComponent.LateTick()
WorldObjectComponent.TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
WorldObjectComponent.OnPickup(Player)
WorldObjectComponent.OnBeforeObjectMoved()
WorldObjectComponent.OnAfterObjectMoved()
WorldObjectComponent.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
WorldObjectComponent.UILinkContent()
WorldObjectComponent.Parent
WorldObjectComponent.Name
WorldObjectComponent.IconName
WorldObjectComponent.ForceActiveTab
WorldObjectComponent.ComponentPrefabName
WorldObjectComponent.ComponentTabName
WorldObjectComponent.Enabled
WorldObjectComponent.IsDestroyed
WorldObjectComponent.Availability
WorldObjectComponent.ShouldRequestEverything
WorldObjectComponent.Owners
WorldObjectComponent.ControllerID
WorldObjectComponent.IOwned.Deed
WorldObjectComponent.Subscriptions
WorldObjectComponent.PropertyChanged
Namespace: Eco.Gameplay.Components
Assembly: Eco.Gameplay.dll
Syntax
public class MinimapComponent : WorldObjectComponent, ILinkable, IOwned, IController, IViewController, IHasUniversalID, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions
Remarks

Those icons can be either static (baked to atlas for optimization) or non-static (pos sync in real time), based on if they're Movable or not.

Constructors

MinimapComponent()

Declaration
public MinimapComponent()

Properties

CanMove

Declaration
public bool CanMove { get; }
Property Value
Type Description
System.Boolean

Methods

Destroy()

Declaration
public override void Destroy()
Overrides
WorldObjectComponent.Destroy()

InitAsMovable()

Marks the object as Movable. This can only be done before initialization is complete.

Declaration
public void InitAsMovable()

Initialize()

Declaration
public override void Initialize()
Overrides
WorldObjectComponent.Initialize()

SetCategory(LocString)

Declaration
public void SetCategory(LocString category)
Parameters
Type Name Description
LocString category

SetOverrideTarget(MinimapObject)

Sets the position provider for the target object. If null, the object's position will be used.

Declaration
public void SetOverrideTarget(MinimapObject target)
Parameters
Type Name Description
MinimapObject target
Remarks

Useful for fully syncing the positions of two minimap objects (e.g.: When a Player drives a vehicle).

SyncPosition()

Syncs the position of the MinimapObject with that of the parent WorldObject.

Declaration
public void SyncPosition()

Implements

ILinkable
IOwned
IController
IViewController
IHasUniversalID
IHasSerializableID
IRPCAuthChecks
System.ComponentModel.INotifyPropertyChanged
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IHasInteractions

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾