Commit Graph

54 Commits

Author SHA1 Message Date
Max Cahill
fc0812d94e [fixed] possible missing args causing issues in async 2020-04-28 17:05:25 +10:00
Max Cahill
9048ee116f [fixed] issues with async calls when missing args, callback, or error callback (eg single anonymous function) 2020-04-28 12:08:53 +10:00
Max Cahill
e75147ec77 [modified] moved tablex.stringify to stringx.pretty 2020-04-17 10:45:15 +10:00
Max Cahill
26acf1752d [added] stringx module (just split for now) and overlay to string on export 2020-04-17 10:35:00 +10:00
Max Cahill
6bf6113dc2 [added] quoted strings in tablex.stringify; todo consider moving it to stringx actually, as it works for non-table types, maybe as stringx.pretty... 2020-04-17 10:34:39 +10:00
Max Cahill
f6a2c9834f [added] nearest_point_on_line 2020-04-16 17:17:53 +10:00
Max Cahill
d445c170e1 [added] tablex.insert_sorted (does what you'd expect, though no binary search yet) 2020-04-14 21:52:33 +10:00
Max Cahill
7922cd3912 [modified] table.push and table.unshift return the table for possible chaining 2020-04-14 13:53:10 +10:00
Max Cahill
b570ea7096 [added] tablex.front and tablex.key_of 2020-04-10 14:14:15 +10:00
Max Cahill
317f3f2cc7 [updated] readme with link to examples 2020-04-09 17:39:57 +10:00
Max Cahill
54b21ce159 [added] mathx.wrap_index 2020-04-09 17:39:46 +10:00
Max Cahill
9fbe8cc3c4 [fixed] typo in vec3 tostring 2020-04-08 21:25:42 +10:00
Max Cahill
a87380f43c [modified] moved dedupe from functional to tablex 2020-04-08 21:18:52 +10:00
Max Cahill
f214be9f59 [added] tostring awareness for tablex.stringify 2020-04-08 21:10:24 +10:00
Max Cahill
afd279f1db [added] tostring for vec2 and vec3 - not sure how to handle wanting more/less precision for these currently. 2020-04-08 21:10:03 +10:00
Max Cahill
c191a7b4f6 [fixed] issue loading tablex without love 2020-04-08 20:51:16 +10:00
Max Cahill
8d5da0a9ff [modified] moved append and append_inplace from functional to tablex 2020-04-08 20:50:51 +10:00
Max Cahill
e1f759cb90 [fixed] sequence:reduce typo 2020-04-07 16:19:38 +10:00
Max Cahill
55d9980512 [modified] misc readme 2020-04-07 14:05:25 +10:00
Max Cahill
3d5f2e99ff [fixed] missing paren in readme 2020-04-07 14:01:37 +10:00
Max Cahill
27790c69a8 [added] state_machine:_call supports varargs 2020-04-07 13:56:00 +10:00
Max Cahill
1e07dd9746 [modified] state machine uses class rather than own metatable management 2020-04-07 13:53:28 +10:00
Max Cahill
02568f8f08 [modified] intersect.lua imports vec2 unconditionally rather than attempting to use the global 2020-04-07 13:51:13 +10:00
Max Cahill
6386aaf298 [modified] big refactor to localised modules and require("batteries"):export() for global usage; renamed files table to tablex and math to mathx to allow using the library in your module root if you really want to. 2020-04-07 13:49:10 +10:00
Max Cahill
4bbbdf86d6
[modified] functional.lua find_best changed to ipairs and added find_min and find_max better named alternatives 2020-04-04 18:59:40 +10:00
Max Cahill
9422152181 [added] math.lerp_eps and matching vec2/vec3 methods; for ensuring a lerp actually reaches its destination once the delta doesn't matter 2020-04-01 20:58:18 +11:00
Max Cahill
870d291369 [modified] optimised vec3 swizzling 2020-04-01 20:56:36 +11:00
Max Cahill
c7d96461cf [added] intersect.point_in_poly and required plumbing 2020-04-01 19:28:22 +11:00
Max Cahill
ef25d12b1b
Merge pull request #3 from flamendless/patch-1
Fixed typo in table.clear
2020-03-28 16:06:37 +11:00
Brandon Blanker Lim-it
4f3c277493
Fixed typo in table.clear 2020-03-28 12:30:25 +08:00
Max Cahill
74a04423bb [removed] class.lua dependency on table.overlay - fixed #1 2020-03-24 14:57:42 +11:00
Max Cahill
3674846f11 [added] functional.find_best accepts (ignores) nil results for easy filtering 2020-03-20 22:31:20 +11:00
Max Cahill
370aee6cbc [added] vec2:new supports .x .y table argument 2020-03-18 21:22:11 +11:00
Max Cahill
bb35fc2f57 [added] stall support, timers and intervals to async 2020-03-16 20:17:48 +11:00
Max Cahill
3d3ccd921c [fixed] color alias added to exported module as well as exported globals 2020-03-15 21:38:19 +11:00
Max Cahill
ebfbd10b3a [added] more documentation 2020-03-15 21:36:50 +11:00
Max Cahill
ad2fc71e7a [fixed] non-global compatible 2020-03-15 21:22:22 +11:00
Max Cahill
429ef9b02e [fixed] typo 2020-03-15 20:41:39 +11:00
Max Cahill
0f029123f4 [modified] readme dust off 2020-03-15 20:40:00 +11:00
Max Cahill
6257931520 [added] license note to readme 2020-03-15 20:29:53 +11:00
Max Cahill
66a9f41474 [modified] renamed to batteries, added global export suppression and more documentation 2020-03-15 20:28:50 +11:00
Max Cahill
0dd92b2c2e [moved] table.copy from functional.lua to table.lua and updated signature a little to allow deep overlays 2020-03-12 21:15:18 +11:00
Max Cahill
27b73543e0 [modified] clean up source of stable_sort.lua 2020-03-10 13:14:26 +11:00
Max Cahill
94005675e9 [fixed] vec3:new - seldom used but still important 2020-02-26 15:25:02 +11:00
Max Cahill
9d556574f1 [added] table.reverse, vec3 to init.lua 2020-02-05 21:16:58 +11:00
Max Cahill
0a1e55b300 [fixed] issued with async 2020-02-01 21:38:00 +11:00
Max Cahill
22acd78e5e [added] async todo 2020-02-01 19:39:51 +11:00
Max Cahill
2253533246 [added] manual gc 2020-02-01 19:30:36 +11:00
Max Cahill
6e7cabe9e0 [modified] split sequence and unique_mapping to their own files
[added] async to init
2020-01-31 11:56:37 +11:00
Max Cahill
8a582f8c66 [added] async.lua 2020-01-31 11:55:50 +11:00