Skip to content

Releases: hexxfy/omp

v0.5.0

Choose a tag to compare

@hexxfy hexxfy released this 03 Jun 20:02

Breaking changes

  • Replace the Dispatcher API (ListenFunc, EventType, NewEvent, Event) with type-safe On[T] and Emit.
  • Remove string EventType constants and the Event{type, payload} envelope; events are now plain structs.
  • Remove the per-dialog Events field in favor of typed OnResponse callbacks.

Features

  • Add generic type-safe event handling via On[T] and Emit.
  • Add EventEmitter interface with BaseEventEmitter and SetEventEmitter for wrapping event dispatch.
  • Add typed OnResponse callbacks to MessageDialog, InputDialog, ListDialog and TabListDialog.

Improvements

  • Route events by Go type instead of strings.
  • Dispatch event handlers synchronously and in order.
  • Drop the golang.org/x/sync dependency.

v0.4.0

Choose a tag to compare

@hexxfy hexxfy released this 29 Jun 12:05

Features

  • Add IsValidModel function.
  • Add players RedirectDownload method.
  • Make SetConfigOption and ConfigOption functions publicly available for working with config values.

Fixes

  • Fix a bug in configOption. PR #4 by @christhefrog.
  • Fix crashes on calling custom models functions. Issue #3 by @christhefrog.

v0.3.1

Choose a tag to compare

@hexxfy hexxfy released this 24 Jun 13:15

Features

  • Add godoc for player methods.

Fixes

  • Fix dialogs bug. Issue #2 by @christhefrog.

v0.3.0

Choose a tag to compare

@hexxfy hexxfy released this 23 Jun 12:17

Features

  • Add core data type setters. PR #1 by @christhefrog.
  • Add SendRCONCommand function.

Fixes

  • Fix memory leak in IsIPBanned function.

v0.2.1

Choose a tag to compare

@hexxfy hexxfy released this 12 May 15:27

Fixes

  • Fix library loading error on Linux.
  • Fix building errors on Linux (include stddef.h for size_t).

v0.2.0

Choose a tag to compare

@hexxfy hexxfy released this 11 May 18:37

Full prod ready release. You can check the Quickstart guide in README to get started and write your first lines of omp code.

v0.1.0

v0.1.0 Pre-release
Pre-release

Choose a tag to compare

@hexxfy hexxfy released this 01 May 15:07
Fix