-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc9b876
commit ba2efa3
Showing
11 changed files
with
146 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
Lib/src/packets/interaction/ReactionCollectorAnyShopSmallEvent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {ReactionCollectorData} from "./ReactionCollectorPacket"; | ||
import {ItemWithDetails} from "../../interfaces/ItemWithDetails"; | ||
|
||
export class ReactionCollectorAnyShopSmallEventData extends ReactionCollectorData { | ||
item!: ItemWithDetails; | ||
|
||
price!: number; | ||
} |
32 changes: 32 additions & 0 deletions
32
Lib/src/packets/interaction/ReactionCollectorEpicShopSmallEvent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { | ||
ReactionCollector, | ||
ReactionCollectorAcceptReaction, | ||
ReactionCollectorCreationPacket, | ||
ReactionCollectorRefuseReaction | ||
} from "./ReactionCollectorPacket"; | ||
import {ReactionCollectorAnyShopSmallEventData} from "./ReactionCollectorAnyShopSmallEvent"; | ||
|
||
export class ReactionCollectorEpicShopSmallEventData extends ReactionCollectorAnyShopSmallEventData { | ||
tip!: boolean; | ||
} | ||
|
||
export class ReactionCollectorEpicShopSmallEvent extends ReactionCollector { | ||
private readonly data: ReactionCollectorEpicShopSmallEventData; | ||
|
||
constructor(data: ReactionCollectorEpicShopSmallEventData) { | ||
super(); | ||
this.data = data; | ||
} | ||
|
||
creationPacket(id: string, endTime: number): ReactionCollectorCreationPacket { | ||
return { | ||
id, | ||
endTime, | ||
reactions: [ | ||
this.buildReaction(ReactionCollectorAcceptReaction, {}), | ||
this.buildReaction(ReactionCollectorRefuseReaction, {}) | ||
], | ||
data: this.buildData(ReactionCollectorEpicShopSmallEventData, this.data) | ||
}; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
Lib/src/packets/interaction/ReactionCollectorShopSmallEvent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { | ||
ReactionCollector, | ||
ReactionCollectorAcceptReaction, | ||
ReactionCollectorCreationPacket, | ||
ReactionCollectorRefuseReaction | ||
} from "./ReactionCollectorPacket"; | ||
import {ReactionCollectorAnyShopSmallEventData} from "./ReactionCollectorAnyShopSmallEvent"; | ||
|
||
export class ReactionCollectorShopSmallEventData extends ReactionCollectorAnyShopSmallEventData { | ||
} | ||
|
||
export class ReactionCollectorShopSmallEvent extends ReactionCollector { | ||
private readonly data: ReactionCollectorShopSmallEventData; | ||
|
||
constructor(data: ReactionCollectorShopSmallEventData) { | ||
super(); | ||
this.data = data; | ||
} | ||
|
||
creationPacket(id: string, endTime: number): ReactionCollectorCreationPacket { | ||
return { | ||
id, | ||
endTime, | ||
reactions: [ | ||
this.buildReaction(ReactionCollectorAcceptReaction, {}), | ||
this.buildReaction(ReactionCollectorRefuseReaction, {}) | ||
], | ||
data: this.buildData(ReactionCollectorShopSmallEventData, this.data) | ||
}; | ||
} | ||
} |