@ryelite/core
v0.1.1
Published
RyeLite Client Core
Maintainers
Readme
@ryelite/core
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.
Installation
npm install @ryelite/core
-or-
yarn add @ryelite/coreUsage
This 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
}
}Available Types
Core Interfaces
Plugin- Base plugin class to extendPluginSettings- Plugin configuration interface
Managers
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
Reflector
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.
Utilities
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
Game Hooks
If you are building a plugin please read our guide on how to make Game Hooks.
