29 Commits

Author SHA1 Message Date
Robert Zenz
a8844fe564 Added random, a global random object. 2015-10-08 21:22:39 +02:00
Robert Zenz
c8ca187af8 Slightly improved documentation. 2015-10-08 20:18:52 +02:00
Robert Zenz
5d98a9282f settings.get_pos is now an alias of get_pos3d. 2015-10-08 20:17:41 +02:00
Robert Zenz
6fda1358c2 Added the index to the callback. 2015-10-08 20:15:01 +02:00
Robert Zenz
6279b08907 Added List:cull_duplicates() function. 2015-10-04 12:32:17 +02:00
Robert Zenz
eb6362ea01 Added List:sort() function. 2015-10-04 12:10:55 +02:00
Robert Zenz
245aa1e9e5 Fixed copy/paste error. 2015-10-03 12:38:19 +02:00
Robert Zenz
50a1699dc7 Added posutil. 2015-10-03 12:34:14 +02:00
Robert Zenz
edc2f23859 Added a few more functions. 2015-09-23 21:37:08 +02:00
Robert Zenz
46c1704d5c Merge branch 'master' of github.com:RobertZenz/minetest-australopithecus-utils 2015-09-23 19:06:04 +02:00
Robert Zenz
6b289a8255 Changed the way List works in an incompatible manner.
List is now a mere thin wrapper around a number indexed table, it is
now one indexed and otherwise behaves a little bit different.

If you happened to use it, sorry for the breakage, but this is much
more sane then the previous implementation.
2015-09-23 19:01:41 +02:00
Robert Zenz
a737f418aa Added doc titles. 2015-09-19 12:19:08 +02:00
Robert Zenz
8f1711abc6 Updated structure and Makefile. 2015-09-19 11:42:20 +02:00
Robert Zenz
c5355e9a3b Added settings.get_pos2d(name, default_value). 2015-09-16 19:29:29 +02:00
Robert Zenz
17bf503396 Merge branch 'master' of github.com:RobertZenz/minetest-australopithecus-utils 2015-09-15 23:52:15 +02:00
Robert Zenz
b8745c32b1 Callback in List foreach can now stop the iteration. 2015-09-15 23:45:36 +02:00
Robert Zenz
130a761cfd Added settings utility. 2015-09-12 13:22:27 +02:00
Robert Zenz
614b171e58 Callbacks of node.surroundings can now stop the iterating. 2015-09-06 15:48:14 +02:00
Robert Zenz
9b9cac01eb Added wallmountedutil and facedirutil. 2015-08-31 20:04:55 +02:00
Robert Zenz
af71918cca Added stopwatch.stop_only that returns the duration. 2015-08-26 23:15:14 +02:00
Robert Zenz
55b0036123 Stopwatch does now accept how exact the printed time should be. 2015-08-26 23:11:40 +02:00
Robert Zenz
1d9b5cedce Added various new utility functions. 2015-08-22 11:54:52 +02:00
Robert Zenz
7c68942911 Added nodeutil.wallmounted_to_facedir(). 2015-08-20 21:03:42 +02:00
Robert Zenz
7277506a19 Added textureutil.tileable(). 2015-08-20 19:38:10 +02:00
Robert Zenz
177bcaa4ad Added nodeutil. 2015-08-18 20:08:16 +02:00
Robert Zenz
95bfe6d78b blockutil.get_begin/end does now also accept a pos as first parameter. 2015-08-17 20:19:32 +02:00
Robert Zenz
0fdeb22618 Added List:invoke(...) function. 2015-08-15 14:16:50 +02:00
Robert Zenz
bd62a1e5db Fixed LDoc warnings. 2015-08-14 21:29:46 +02:00
Robert Zenz
168d2b6539 Switched to LDoc for documentation. 2015-08-14 21:17:06 +02:00