![]() |
|
Release GLua/Starfall Parity Library - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Starfall (https://teamscm.co.uk/forum-7.html) +--- Thread: Release GLua/Starfall Parity Library (/thread-3570.html) |
GLua/Starfall Parity Library - frdhog - 06-01-2021 As I am more familiar with GLua than Starfall, I have translated some GLua libraries to be used in Starfall. At the moment it mostly includes GLua's table, string and math extension methods. Some cannot be converted due to the limitations within Starfall. As Starfall uses more camelCase than CamelCase, most functions have a camelCase alias To see the list of functions, check Shared/frdhog/libs/gluaparity/-funcs-.txt however some highlights include SortedPairs, math.Remap, math.BinToInt, string.Replace, string.Explode, table.Merge & PrintTable.
Note: I must admit, I haven't tested each and every function so please tell me if one isn't working. To see how to use the functions, search them on the Garry's Mod wiki or read the code. GLua sources are linked at the top of each file
|