Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/impaler/omni-utils

Small collection of Haxe utility classes
https://github.com/impaler/omni-utils

Last synced: about 2 months ago
JSON representation

Small collection of Haxe utility classes

Awesome Lists containing this project

README

        

Omni-Utils
==========

General purpose cross platform Haxe classes:

### OSignals

Includes a Type safe Signal system that is also tightly integrated with the OpenFL event system.

Tested with:

- JS
- SWF
- CPP
- NEKO

Basic usage:

```
var hello = new OSignal();
hello.add(funciton(){trace("Hello World")});
hello.dispatch();
```

OSignals has added advantage of methods such as `addOnce`, `addFirst`, `exists`, `remove`, `removeAll` and `numListeners`.
See the `./tests/signals/*` for example usage.

The OSignals have munit test written to demonstrate the api and maintain stability.

Inspired on work by ralcr/sdk.ralcr and robertpenner/as3-signals