Changes

m
Line 1,039: Line 1,039:     
===Custom location contexts===
 
===Custom location contexts===
The game previously had two hardcoded location context enumms: <samp>Default</samp> (for the valley) and <samp>Island</samp> (for [[Ginger Island]]). These have been replaced with location context models which define the location context settings, and supports custom contexts defined by mods. The context for a location is set via the existing <samp>LocationContext</samp> [[Modding:Maps|map property]].
+
The game previously had two hardcoded location context enums: <samp>Default</samp> (for the valley) and <samp>Island</samp> (for [[Ginger Island]]). These have been replaced with location context models which define the location context settings, and supports custom contexts defined by mods. The context for a location is set via the existing <samp>LocationContext</samp> [[Modding:Maps|map property]].
    
Custom contexts can be created by editing the new <samp>Data\LocationContexts</samp> asset. This consists of a string → model lookup, where the key is the unique context ID, and the value is a model with these fields:
 
Custom contexts can be created by editing the new <samp>Data\LocationContexts</samp> asset. This consists of a string → model lookup, where the key is the unique context ID, and the value is a model with these fields:
translators
8,445

edits