Table of Contents

Class MapChangedEvent

Namespace
WorldMachineLoader.API.Events
Assembly
WML.API.dll

Event that is triggered when the player moves to another map/location.

public class MapChangedEvent
Inheritance
MapChangedEvent
Inherited Members

Remarks

This event is invoked regardless of how the map transfer occurs:

- When the player walks to another location by themself.

- When the player uses "Fast Travel" feature.

Constructors

MapChangedEvent(int, string, string)

Initializes a new instance of the MapChangedEvent class.

public MapChangedEvent(int mapId, string name, string localizedName)

Parameters

mapId int

The ID of the map.

name string

The internal name of the map.

localizedName string

The display name of the map.

Properties

InternalName

The internal name of the map.

public string InternalName { get; }

Property Value

string

LocalizedName

The display name of the map.

public string LocalizedName { get; }

Property Value

string

Remarks

This localized name is based on the language set in The World Machine settings.

MapID

The ID of the map.

public int MapID { get; }

Property Value

int