Avorion
评价数不足
Extended Utility Library
   
奖励
收藏
已收藏
取消收藏
Mods: Mod
文件大小
发表于
更新日期
27.038 KB
2019 年 4 月 24 日 上午 11:59
2021 年 8 月 28 日 上午 7:16
5 项改动说明 ( 查看 )

订阅以下载
Extended Utility Library

描述
A collection of useful functions to handle strings, number or tables.

Usage:
package.path = package.path .. ";data/scripts/lib/?.lua"
include("extutils")

This collection is intended to grow over time. If you have a great idea what I should add to it, feel free to contact me. Maybe i will develop what you are thinking about, or include the function you gave me.

Functions:
spairs - Sort a table by given order.
serialize - transform an object into a source code string. loadstring()() returns the original object.

Credits:
spairs: Michal Kottman [stackoverflow.com]
serialize: Fabien Fleutot [github.com]



Found a bug or need support? You can contact me directly in my Steam chat: https://s.team/chat/AT3fSCye