[go: up one dir, main page]

ludi-commons

yet another haxe util lib
https://github.com/c-g-dev/ludi-commons

To install, run:

haxelib install ludi-commons 0.0.7 

See using Haxelib in Haxelib documentation for more information.

README.md

ludi-commons

Yet another Haxe utility lib that no one asked for. I'm just pushing this to haxelib so that it can be easily referenced by my other, more functional repos.

The content of this lib might have frequent breaking changes, so it isn't well suited for independent use. It is better used as reading material for those who are interested in Haxe.

There are lots of utilities in this repo, but here are the ones I find myself using the most:

ludi.commons.collections.GridMap

2D array wrapper


ludi.commons.UUID

"-lib uuid" wrapper


ludi.commons.TypeCode

Macro utilities for keeping a reference for the type of an object. For non-class types I don't know of any other unified way to consistently get the name of the type. For classes you could use Type.getClassName(Type.getClass(obj)) but this caches that result to prevent unnecessary Reflection calls. Also check the "InjectTypeCode" interface which @:autobuild runs a macro to inject the typecode automatically.


ludi.commons.messaging.Topic

Basic pub/sub utility.


ludi.commons.pattern.UndoRedoManager

Generic manager class for the "command" design pattern.


Contributors
cgdev
Version
0.0.7
Published
5 weeks ago
Dependencies
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub