# Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. #379 ## Type of change Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update # How Has This Been Tested? Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration. # Checklist - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that provde my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules Reviewed-on: #412 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
82 lines
No EOL
3.7 KiB
TypeScript
82 lines
No EOL
3.7 KiB
TypeScript
import { CoreClient } from "./client/client";
|
|
import { Environment } from "./constants/Environment";
|
|
|
|
// Global Command Imports
|
|
import About from "./commands/about";
|
|
import AllBalance from "./commands/allbalance";
|
|
import Balance from "./commands/balance";
|
|
import Daily from "./commands/daily";
|
|
import Drop from "./commands/drop";
|
|
import Effects from "./commands/effects";
|
|
import Gdrivesync from "./commands/gdrivesync";
|
|
import Give from "./commands/give";
|
|
import Id from "./commands/id";
|
|
import Inventory from "./commands/inventory";
|
|
import Multidrop from "./commands/multidrop";
|
|
import Resync from "./commands/resync";
|
|
import Sacrifice from "./commands/sacrifice";
|
|
import Series from "./commands/series";
|
|
import Stats from "./commands/stats";
|
|
import Trade from "./commands/trade";
|
|
import View from "./commands/view";
|
|
|
|
// Test Command Imports
|
|
import Dropnumber from "./commands/stage/dropnumber";
|
|
import Droprarity from "./commands/stage/droprarity";
|
|
|
|
// Button Event Imports
|
|
import Claim from "./buttonEvents/Claim";
|
|
import EffectsButtonEvent from "./buttonEvents/Effects";
|
|
import InventoryButtonEvent from "./buttonEvents/Inventory";
|
|
import MultidropButtonEvent from "./buttonEvents/Multidrop";
|
|
import Reroll from "./buttonEvents/Reroll";
|
|
import SacrificeButtonEvent from "./buttonEvents/Sacrifice";
|
|
import SeriesEvent from "./buttonEvents/Series";
|
|
import TradeButtonEvent from "./buttonEvents/Trade";
|
|
import ViewButtonEvent from "./buttonEvents/View";
|
|
|
|
// String Dropdown Event Imports
|
|
import InventoryStringDropdown from "./stringDropdowns/Inventory";
|
|
|
|
export default class Registry {
|
|
public static RegisterCommands() {
|
|
// Global Commands
|
|
CoreClient.RegisterCommand("about", new About());
|
|
CoreClient.RegisterCommand("allbalance", new AllBalance());
|
|
CoreClient.RegisterCommand("balance", new Balance());
|
|
CoreClient.RegisterCommand("daily", new Daily());
|
|
CoreClient.RegisterCommand("drop", new Drop());
|
|
CoreClient.RegisterCommand("effects", new Effects());
|
|
CoreClient.RegisterCommand("gdrivesync", new Gdrivesync());
|
|
CoreClient.RegisterCommand("give", new Give());
|
|
CoreClient.RegisterCommand("id", new Id());
|
|
CoreClient.RegisterCommand("inventory", new Inventory());
|
|
CoreClient.RegisterCommand("multidrop", new Multidrop());
|
|
CoreClient.RegisterCommand("resync", new Resync());
|
|
CoreClient.RegisterCommand("sacrifice", new Sacrifice());
|
|
CoreClient.RegisterCommand("series", new Series());
|
|
CoreClient.RegisterCommand("stats", new Stats());
|
|
CoreClient.RegisterCommand("trade", new Trade());
|
|
CoreClient.RegisterCommand("view", new View());
|
|
|
|
// Test Commands
|
|
CoreClient.RegisterCommand("dropnumber", new Dropnumber(), Environment.Test);
|
|
CoreClient.RegisterCommand("droprarity", new Droprarity(), Environment.Test);
|
|
}
|
|
|
|
public static RegisterButtonEvents() {
|
|
CoreClient.RegisterButtonEvent("claim", new Claim());
|
|
CoreClient.RegisterButtonEvent("effects", new EffectsButtonEvent());
|
|
CoreClient.RegisterButtonEvent("inventory", new InventoryButtonEvent());
|
|
CoreClient.RegisterButtonEvent("multidrop", new MultidropButtonEvent());
|
|
CoreClient.RegisterButtonEvent("reroll", new Reroll());
|
|
CoreClient.RegisterButtonEvent("sacrifice", new SacrificeButtonEvent());
|
|
CoreClient.RegisterButtonEvent("series", new SeriesEvent());
|
|
CoreClient.RegisterButtonEvent("trade", new TradeButtonEvent());
|
|
CoreClient.RegisterButtonEvent("view", new ViewButtonEvent());
|
|
}
|
|
|
|
public static RegisterStringDropdownEvents() {
|
|
CoreClient.RegisterStringDropdownEvent("inventory", new InventoryStringDropdown());
|
|
}
|
|
} |