From efa20497a94b14b2a05368293ababfe564cae641 Mon Sep 17 00:00:00 2001 From: dank074 Date: Wed, 16 Feb 2022 01:25:46 -0600 Subject: [PATCH] export crafting messages --- src/nitro/communication/NitroMessages.ts | 4 ++-- src/nitro/communication/messages/incoming/crafting/index.ts | 4 ++++ src/nitro/communication/messages/incoming/index.ts | 1 + .../outgoing/crafting/GetCraftableProductsComposer.ts | 2 +- .../messages/outgoing/crafting/GetCraftingRecipeComposer.ts | 2 +- src/nitro/communication/messages/outgoing/crafting/index.ts | 5 +++++ src/nitro/communication/messages/outgoing/index.ts | 1 + src/nitro/communication/messages/parser/crafting/index.ts | 6 ++++++ src/nitro/communication/messages/parser/index.ts | 1 + 9 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 src/nitro/communication/messages/incoming/crafting/index.ts create mode 100644 src/nitro/communication/messages/outgoing/crafting/index.ts create mode 100644 src/nitro/communication/messages/parser/crafting/index.ts diff --git a/src/nitro/communication/NitroMessages.ts b/src/nitro/communication/NitroMessages.ts index 5345fc89..0835682e 100644 --- a/src/nitro/communication/NitroMessages.ts +++ b/src/nitro/communication/NitroMessages.ts @@ -961,8 +961,8 @@ export class NitroMessages implements IMessageConfiguration // CRAFTING this._composers.set(OutgoingHeader.CRAFT, CraftComposer); this._composers.set(OutgoingHeader.CRAFT_SECRET, CraftSecretComposer); - this._composers.set(OutgoingHeader.GET_CRAFTABLE_PRODUCTS, GetCraftableProductsComposer); - this._composers.set(OutgoingHeader.GET_CRAFTING_RECIPE, GetCraftingRecipeComposer); + this._composers.set(OutgoingHeader.GET_CRAFTABLE_PRODUCTS, GetCraftingRecipeComposer); + this._composers.set(OutgoingHeader.GET_CRAFTING_RECIPE, GetCraftableProductsComposer); this._composers.set(OutgoingHeader.GET_CRAFTING_RECIPES_AVAILABLE, GetCraftingRecipesAvailableComposer); // FRIENDFURNI diff --git a/src/nitro/communication/messages/incoming/crafting/index.ts b/src/nitro/communication/messages/incoming/crafting/index.ts new file mode 100644 index 00000000..cf264496 --- /dev/null +++ b/src/nitro/communication/messages/incoming/crafting/index.ts @@ -0,0 +1,4 @@ +export * from './CraftableProductsEvent'; +export * from './CraftingRecipeEvent'; +export * from './CraftingRecipesAvailableEvent'; +export * from './CraftingResultEvent'; diff --git a/src/nitro/communication/messages/incoming/index.ts b/src/nitro/communication/messages/incoming/index.ts index a45dac4b..d48d41f5 100644 --- a/src/nitro/communication/messages/incoming/index.ts +++ b/src/nitro/communication/messages/incoming/index.ts @@ -7,6 +7,7 @@ export * from './camera'; export * from './campaign'; export * from './catalog'; export * from './client'; +export * from './crafting'; export * from './desktop'; export * from './friendlist'; export * from './game'; diff --git a/src/nitro/communication/messages/outgoing/crafting/GetCraftableProductsComposer.ts b/src/nitro/communication/messages/outgoing/crafting/GetCraftableProductsComposer.ts index ea94f9ec..bb336c45 100644 --- a/src/nitro/communication/messages/outgoing/crafting/GetCraftableProductsComposer.ts +++ b/src/nitro/communication/messages/outgoing/crafting/GetCraftableProductsComposer.ts @@ -4,7 +4,7 @@ export class GetCraftableProductsComposer implements IMessageComposer; - constructor(k: string) + constructor(k: number) { this._data = [k]; } diff --git a/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipeComposer.ts b/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipeComposer.ts index cfb0dc66..b9efa97e 100644 --- a/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipeComposer.ts +++ b/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipeComposer.ts @@ -4,7 +4,7 @@ export class GetCraftingRecipeComposer implements IMessageComposer; - constructor(k: number) + constructor(k: string) { this._data = [k]; } diff --git a/src/nitro/communication/messages/outgoing/crafting/index.ts b/src/nitro/communication/messages/outgoing/crafting/index.ts new file mode 100644 index 00000000..ab46a6dd --- /dev/null +++ b/src/nitro/communication/messages/outgoing/crafting/index.ts @@ -0,0 +1,5 @@ +export * from './CraftComposer'; +export * from './CraftSecretComposer'; +export * from './GetCraftableProductsComposer'; +export * from './GetCraftingRecipeComposer'; +export * from './GetCraftingRecipesAvailableComposer'; diff --git a/src/nitro/communication/messages/outgoing/index.ts b/src/nitro/communication/messages/outgoing/index.ts index 184a9a9c..96ea24b4 100644 --- a/src/nitro/communication/messages/outgoing/index.ts +++ b/src/nitro/communication/messages/outgoing/index.ts @@ -4,6 +4,7 @@ export * from './camera'; export * from './campaign'; export * from './catalog'; export * from './competition'; +export * from './crafting'; export * from './desktop'; export * from './friendfurni'; export * from './friendlist'; diff --git a/src/nitro/communication/messages/parser/crafting/index.ts b/src/nitro/communication/messages/parser/crafting/index.ts new file mode 100644 index 00000000..d0dc5ee7 --- /dev/null +++ b/src/nitro/communication/messages/parser/crafting/index.ts @@ -0,0 +1,6 @@ +export * from './CraftableProductsMessageParser'; +export * from './CraftingRecipeIngredientParser'; +export * from './CraftingRecipeMessageParser'; +export * from './CraftingRecipesAvailableMessageParser'; +export * from './CraftingResultMessageParser'; +export * from './CraftingResultObjectParser'; diff --git a/src/nitro/communication/messages/parser/index.ts b/src/nitro/communication/messages/parser/index.ts index 323d9c5e..bfd1ea42 100644 --- a/src/nitro/communication/messages/parser/index.ts +++ b/src/nitro/communication/messages/parser/index.ts @@ -8,6 +8,7 @@ export * from './campaign'; export * from './catalog'; export * from './client'; export * from './competition'; +export * from './crafting'; export * from './desktop'; export * from './friendlist'; export * from './game';