forked from fnbrjs/fnbr.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from FNLB-Project/main
bun support
- Loading branch information
Showing
17 changed files
with
217 additions
and
36 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
import BasePartyJoinRequest from './BasePartyJoinRequest'; | ||
import type ClientUser from '../user/ClientUser'; | ||
import type Friend from '../friend/Friend'; | ||
import type Client from '../../Client'; | ||
|
||
/** | ||
* Represents an outgoing party join request | ||
*/ | ||
class SentPartyJoinRequest extends BasePartyJoinRequest { | ||
public override receiver!: Friend; | ||
public override sender!: ClientUser; | ||
public override receiver: Friend; | ||
public override sender: ClientUser; | ||
|
||
/** | ||
* @param client The main client | ||
* @param sender The user who requested to join the party | ||
* @param receiver The user who received the join request | ||
* @param data The party confirmation data | ||
*/ | ||
constructor(client: Client, sender: ClientUser, receiver: Friend, data: any) { | ||
super(client, sender, receiver, data); | ||
|
||
this.sender = sender; | ||
this.receiver = receiver; | ||
} | ||
} | ||
|
||
export default SentPartyJoinRequest; |
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 |
---|---|---|
@@ -1,9 +1,25 @@ | ||
import STWWeaponSchematic from './STWWeaponSchematic'; | ||
import type { STWSchematicMeleeSubType } from '../../../resources/structs'; | ||
import { parseSTWSchematicTemplateId } from '../../util/Util'; | ||
import type { STWSchematicEvoType, STWSchematicMeleeSubType } from '../../../resources/structs'; | ||
import type { STWProfileSchematicData } from '../../../resources/httpResponses'; | ||
import type Client from '../../Client'; | ||
|
||
class STWMeleeWeaponSchematic extends STWWeaponSchematic { | ||
public override type!: 'melee'; | ||
public override subType!: STWSchematicMeleeSubType; | ||
public override type: 'melee'; | ||
public override subType: STWSchematicMeleeSubType; | ||
|
||
constructor(client: Client, id: string, data: STWProfileSchematicData & { | ||
type: 'melee'; | ||
subType: STWSchematicMeleeSubType; | ||
evoType: STWSchematicEvoType; | ||
}) { | ||
super(client, id, data); | ||
|
||
const parsedSchematic = parseSTWSchematicTemplateId(data.templateId); | ||
|
||
this.type = parsedSchematic.type as | 'melee'; | ||
this.subType = parsedSchematic.subType as STWSchematicMeleeSubType; | ||
} | ||
} | ||
|
||
export default STWMeleeWeaponSchematic; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
import STWWeaponSchematic from './STWWeaponSchematic'; | ||
import type { STWSchematicRangedSubType } from '../../../resources/structs'; | ||
import { parseSTWSchematicTemplateId } from '../../util/Util'; | ||
import type { STWSchematicEvoType, STWSchematicRangedSubType } from '../../../resources/structs'; | ||
import type { STWProfileSchematicData } from '../../../resources/httpResponses'; | ||
import type Client from '../../Client'; | ||
|
||
class STWRangedWeaponSchematic extends STWWeaponSchematic { | ||
public override type!: 'ranged'; | ||
public override subType!: STWSchematicRangedSubType; | ||
public override type: 'ranged'; | ||
public override subType: STWSchematicRangedSubType; | ||
|
||
constructor(client: Client, id: string, data: STWProfileSchematicData & { | ||
type: 'ranged'; | ||
subType: STWSchematicRangedSubType | ||
evoType: STWSchematicEvoType; | ||
}) { | ||
super(client, id, data); | ||
|
||
const parsedSchematic = parseSTWSchematicTemplateId(data.templateId); | ||
|
||
this.type = parsedSchematic.type as 'ranged'; | ||
this.subType = parsedSchematic.subType as STWSchematicRangedSubType; | ||
} | ||
} | ||
|
||
export default STWRangedWeaponSchematic; |
Oops, something went wrong.