AlgoLib 预览图

泰拉瑞亚 (Terraria)

AlgoLib

libraryBoth1.4.4

最后更新 2025/11/09文件 30.3 KBID 3599474896

模组简介

A library that contains useful algorithms and helper functions for gathering information in 2D space. I ended up using a lot of the same algorithms across all of my mods and thought that re-implementing them every time was annoying, so I made this library. This mod doesn't do anything on its own, it exists solely to expose useful tools for myself and other modders. Highlights include: • Graph search iterators that traverse grid coordinates: • Breadth-first search for radial searches that expand from a specific point • Bresenham's Line Algorithm for raycasting • Utilities for pathfinding: • A* pathfinding algorithm with optional stagnation limits • Path smoothing/node pruning tools • A nice way to get tiles safely without having to remember to check WorldGen.InWorld every time • A dozen different functions for getting information about two points, such as distance, angle, direction, etc The implementation of the point iterator algorithms in particular is quite optimized, and run comfortably in hot loops. I highly recommend it for cutting down on boilerplate in mods that are heavy on analyzing tiles. GitHub: https://github.com/km-clay/AlgoLib Developed By pagedMov

详情图片

条目信息

所属游戏
泰拉瑞亚 (Terraria)
创意工坊 ID
3599474896
文件名
3599474896.bin
文件大小
30.3 KB
最后更新
2025/11/09
内容版本
v1762632561-615c7076f9dcad46
作者与来源
由原作者发布于 Steam 创意工坊。本站不改变署名,作者信息与原始内容请以 Steam 原始页面 为准。