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
intThe ID of the map.
name
stringThe internal name of the map.
localizedName
stringThe display name of the map.
Properties
InternalName
The internal name of the map.
public string InternalName { get; }
Property Value
LocalizedName
The display name of the map.
public string LocalizedName { get; }
Property Value
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; }