Changes

Jump to navigation Jump to search
Line 22: Line 22:  
===Map Properties===
 
===Map Properties===
 
You can edit many properties of the current map and the tiles in the map. This is already documented here [[Modding:Maps]] //todo link to Map Properties
 
You can edit many properties of the current map and the tiles in the map. This is already documented here [[Modding:Maps]] //todo link to Map Properties
 +
===Tiles===
 +
''terrainFeatures'' contains information about the tiles. (e.g. dirt, grass)
 +
 +
''objects'' contains information about objects on top of tiles. (e.g. crops, stones)
 +
====Valid Position====
 +
<source lang="c#">
 +
terrainFeatures.ContainsKey(Vector2)
 +
objects.ContainsKey(Vector2)
 +
</source>
 +
====HoeDirt====
 +
<source lang="c#">
 +
terrainFeatures[Vector2] is HoeDirt hd
 +
</source>
 +
Check if there crops on this dirt with ''hd.crops''
    
==Player==
 
==Player==
37

edits

Navigation menu