Avorion

Avorion

Not enough ratings
Extended Utility Library
   
Award
Favorite
Favorited
Unfavorite
Mods: Mod
File Size
Posted
Updated
27.038 KB
24 Apr, 2019 @ 11:59am
28 Aug, 2021 @ 7:16am
5 Change Notes ( view )

Subscribe to download
Extended Utility Library

Description
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