mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 12:26:35 +01:00
19 lines
451 B
Plaintext
19 lines
451 B
Plaintext
|
|
//* This file is explicitly licensed under the MIT license. *//
|
|
//* Copyright (c) 2024 Citadel Station developers. *//
|
|
|
|
/datum/ai_pathfinder/astar
|
|
|
|
/datum/ai_pathfinder/astar/search(atom/movable/agent, atom/source, atom/destination, limit, within, slack)
|
|
var/list/path = SSpathfinder.get_path_astar(
|
|
agent,
|
|
source,
|
|
destination,
|
|
within,
|
|
limit,
|
|
slack,
|
|
)
|
|
if(isnull(path))
|
|
return null
|
|
return new /datum/ai_pathing(path, FALSE)
|