This project/package provides two things in one. A plugin-type api to use during development as well as the core runtime used by RyeLite compatible clients.
npm install @ryelite/core
-or-
yarn add @ryelite/coreThis package provides TypeScript type definitions for developing Ryelite plugins. Import the types you need:
import { Plugin, IHighlite, PluginSettings } from '@ryelite/core';
export class MyPlugin extends Plugin {
pluginName = 'MyAwesomePlugin';
author = 'Your Name';
init(): void {
// Plugin initialization
}
start(): void {
// Plugin startup logic
}
stop(): void {
// Plugin cleanup
}
}Plugin- Base plugin class to extendPluginSettings- Plugin configuration interface
NotificationManager- In-game notificationsItemTooltip- Generic Tooltip ManagerUIManager- Ryelite Centric way of creating on-screen UI ElementsPanelManager- UI panel managementSettingsManager- Plugin settings managementDatabaseManager- Data persistenceSoundManager- Audio managementContextMenuManager- Context menu handlingPluginManager- Plugin Standup and State Management
This system handles class inference and auto-reflection based off signatures found in signatures.ts to automatically make classes and their functions available to consume in plugins.
AbbreviateValue- Shortens large numbers to 1.1K, 1.11M, 1.111B, 1.1111TResources- An extremely light IDB wrapper (Likely to depreceated)LookupUtils- Various helper functions for
If you are building a plugin please read our guide on how to make Game Hooks.