mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 12:11:40 +09:00
.
This commit is contained in:
@@ -80,8 +80,7 @@ if settings.startup['PHI-CT'].value then
|
|||||||
return {x = math.floor(pos.x), y = math.floor(pos.y)}
|
return {x = math.floor(pos.x), y = math.floor(pos.y)}
|
||||||
end
|
end
|
||||||
|
|
||||||
math2d.direction = math2d.direction or {}
|
math2d.direction = {vectors = {{x = 0, y = -1}, {x = 1, y = -1}, {x = 1, y = 0}, {x = 1, y = 1}, {x = 0, y = 1}, {x = -1, y = 1}, {x = -1, y = 0}, {x = -1, y = -1}}}
|
||||||
math2d.direction.vectors = {{x = 0, y = -1}, {x = 1, y = -1}, {x = 1, y = 0}, {x = 1, y = 1}, {x = 0, y = 1}, {x = -1, y = 1}, {x = -1, y = 0}, {x = -1, y = -1}}
|
|
||||||
|
|
||||||
function math2d.direction.from_vector(vec)
|
function math2d.direction.from_vector(vec)
|
||||||
vec = math2d.position.ensure_xy(vec)
|
vec = math2d.position.ensure_xy(vec)
|
||||||
|
|||||||
Reference in New Issue
Block a user