Map.BlockOrientation Enumeration
Edit
This enumeration is used to define the direction a block is facing. When creating a block, each "face" of the block is assigned to a specific direction.
Members
Edit
Member name | Description |
---|---|
North | The block is facing north from an overhead perspective |
East | The block is facing east from an overhead perspective |
South | The block is facing south from an overhead perspective |
West | The block is facing west from an overhead perspective |
Example
Edit
local map = self.gameObject:GetComponent ("MapRenderer"):GetMap() map:SetBlockAt (0, 0, 0, 0, Map.BlockOrientation.North)