mirror of
https://github.com/factoriolib/flib.git
synced 2025-09-04 08:26:22 +00:00
Fix orientation constants
This commit is contained in:
@@ -9,14 +9,14 @@ end
|
||||
--- @class flib_orientation
|
||||
local flib_orientation = {}
|
||||
|
||||
flib_orientation.north = defines.direction.north / 8
|
||||
flib_orientation.east = defines.direction.east / 8
|
||||
flib_orientation.west = defines.direction.west / 8
|
||||
flib_orientation.south = defines.direction.south / 8
|
||||
flib_orientation.northeast = defines.direction.northeast / 8
|
||||
flib_orientation.northwest = defines.direction.northwest / 8
|
||||
flib_orientation.southeast = defines.direction.southeast / 8
|
||||
flib_orientation.southwest = defines.direction.southwest / 8
|
||||
flib_orientation.north = defines.direction.north / 16
|
||||
flib_orientation.east = defines.direction.east / 16
|
||||
flib_orientation.west = defines.direction.west / 16
|
||||
flib_orientation.south = defines.direction.south / 16
|
||||
flib_orientation.northeast = defines.direction.northeast / 16
|
||||
flib_orientation.northwest = defines.direction.northwest / 16
|
||||
flib_orientation.southeast = defines.direction.southeast / 16
|
||||
flib_orientation.southwest = defines.direction.southwest / 16
|
||||
|
||||
--- Returns a 4way or 8way direction from an orientation.
|
||||
--- @param orientation number
|
||||
|
Reference in New Issue
Block a user