跳到正文

Raywire

An event library for BTA, designed to provide a flexible and efficient event-driven system for BTA mod developers.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Raywire

Raywire is an event library for Better Than Adventure (BTA), designed to provide a flexible and efficient event-driven system for BTA mod developers.

Written in Kotlin, Raywire makes it easy to create, subscribe to, and manage custom events within your BTA mods.

Using Raywire in Your Mod

Add Raywire as a dependency in your build.gradle.kts:

dependencies {
    implementation("com.github.Apollointhehouse:Raywire:<version>")
}

Replace <version> with the latest Raywire release.


Usage

Take a look at the Event Library for information on how to use this.

This mod provides a global bus you can optionally choose to use:

import me.apollointhehouse.raywire.Raywire

val bus = Raywire.GLOBAL_BUS

Dependencies

评论

登录后评论和评分

Apollointhehouse 的其他作品

查看全部 →