@serenityjs/protocol 0.4.1-beta-20240809180235 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +84 -3
- package/dist/index.js +69 -5
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -2353,7 +2353,7 @@ declare class SkinImage extends DataType {
|
|
|
2353
2353
|
/**
|
|
2354
2354
|
* The data of the image.
|
|
2355
2355
|
*/
|
|
2356
|
-
readonly data:
|
|
2356
|
+
readonly data: Buffer;
|
|
2357
2357
|
/**
|
|
2358
2358
|
* Creates a new skin image.
|
|
2359
2359
|
*
|
|
@@ -2361,7 +2361,7 @@ declare class SkinImage extends DataType {
|
|
|
2361
2361
|
* @param height The height of the image.
|
|
2362
2362
|
* @param data The data of the image.
|
|
2363
2363
|
*/
|
|
2364
|
-
constructor(width: number, height: number, data:
|
|
2364
|
+
constructor(width: number, height: number, data: Buffer);
|
|
2365
2365
|
static read(stream: BinaryStream): SkinImage;
|
|
2366
2366
|
static write(stream: BinaryStream, image: SkinImage): void;
|
|
2367
2367
|
}
|
|
@@ -2460,6 +2460,81 @@ declare class SkinPersonaTintPiece extends DataType {
|
|
|
2460
2460
|
static write(stream: BinaryStream, tintPiece: SkinPersonaTintPiece): void;
|
|
2461
2461
|
}
|
|
2462
2462
|
|
|
2463
|
+
interface ClientData {
|
|
2464
|
+
AnimatedImageData: Array<AnimatedImageData>;
|
|
2465
|
+
ArmSize: string;
|
|
2466
|
+
CapeData: string;
|
|
2467
|
+
CapeId: string;
|
|
2468
|
+
CapeImageHeight: number;
|
|
2469
|
+
CapeImageWidth: number;
|
|
2470
|
+
CapeOnClassicSkin: boolean;
|
|
2471
|
+
ClientRandomId: number;
|
|
2472
|
+
CompatibleWithClientSideChunkGen: true;
|
|
2473
|
+
CurrentInputMode: number;
|
|
2474
|
+
DefaultInputMode: number;
|
|
2475
|
+
DeviceId: string;
|
|
2476
|
+
DeviceModel: string;
|
|
2477
|
+
DeviceOS: number;
|
|
2478
|
+
GameVersion: string;
|
|
2479
|
+
GuiScale: number;
|
|
2480
|
+
IsEditorMode: boolean;
|
|
2481
|
+
LanguageCode: string;
|
|
2482
|
+
OverrideSkin: boolean;
|
|
2483
|
+
PersonaPieces: Array<PersonaPiece>;
|
|
2484
|
+
PersonaSkin: boolean;
|
|
2485
|
+
PieceTintColors: Array<PieceTintColor>;
|
|
2486
|
+
PlatformOfflineId: string;
|
|
2487
|
+
PlatformOnlineId: string;
|
|
2488
|
+
PlayFabId: string;
|
|
2489
|
+
PremiumSkin: boolean;
|
|
2490
|
+
SelfSignedId: string;
|
|
2491
|
+
ServerAddress: string;
|
|
2492
|
+
SkinAnimationData: string;
|
|
2493
|
+
SkinColor: string;
|
|
2494
|
+
SkinData: string;
|
|
2495
|
+
SkinGeometryData: string;
|
|
2496
|
+
SkinGeometryDataEngineVersion: string;
|
|
2497
|
+
SkinId: string;
|
|
2498
|
+
SkinImageHeight: number;
|
|
2499
|
+
SkinImageWidth: number;
|
|
2500
|
+
SkinResourcePatch: string;
|
|
2501
|
+
ThirdPartyName: string;
|
|
2502
|
+
ThirdPartyNameOnly: boolean;
|
|
2503
|
+
TrustedSkin: boolean;
|
|
2504
|
+
UIProfile: number;
|
|
2505
|
+
}
|
|
2506
|
+
interface AnimatedImageData {
|
|
2507
|
+
AnimationExpression: number;
|
|
2508
|
+
Frames: 2;
|
|
2509
|
+
Image: string;
|
|
2510
|
+
ImageHeight: number;
|
|
2511
|
+
ImageWidth: number;
|
|
2512
|
+
Type: number;
|
|
2513
|
+
}
|
|
2514
|
+
interface PersonaPiece {
|
|
2515
|
+
IsDefault: boolean;
|
|
2516
|
+
PackId: string;
|
|
2517
|
+
PieceId: string;
|
|
2518
|
+
PieceType: string;
|
|
2519
|
+
ProductId: string;
|
|
2520
|
+
}
|
|
2521
|
+
interface PieceTintColor {
|
|
2522
|
+
Colors: Array<string>;
|
|
2523
|
+
PieceType: string;
|
|
2524
|
+
}
|
|
2525
|
+
interface IdentityData {
|
|
2526
|
+
XUID: string;
|
|
2527
|
+
displayName: string;
|
|
2528
|
+
identity: string;
|
|
2529
|
+
sandBoxId: string;
|
|
2530
|
+
titleId: string;
|
|
2531
|
+
}
|
|
2532
|
+
interface LoginTokenData {
|
|
2533
|
+
clientData: ClientData;
|
|
2534
|
+
identityData: IdentityData;
|
|
2535
|
+
publicKey: string;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2463
2538
|
/**
|
|
2464
2539
|
* Represents a skin.
|
|
2465
2540
|
*/
|
|
@@ -2572,6 +2647,12 @@ declare class SerializedSkin extends DataType {
|
|
|
2572
2647
|
constructor(identifier: string, playFabIdentifier: string, resourcePatch: string, skinImage: SkinImage, animations: Array<SkinAnimation>, capeImage: SkinImage, geometryData: string, geometryVersion: string, animationData: string, capeIdentifier: string, fullIdentifier: string, armSize: string, skinColor: string, personaPieces: Array<SkinPersonaPiece>, tintPieces: Array<SkinPersonaTintPiece>, isPremium: boolean, isPersona: boolean, isPersonaCapeOnClassic: boolean, isPrimaryUser: boolean, overridingPlayerAppearance: boolean);
|
|
2573
2648
|
static read(stream: BinaryStream): SerializedSkin;
|
|
2574
2649
|
static write(stream: BinaryStream, skin: SerializedSkin): void;
|
|
2650
|
+
/**
|
|
2651
|
+
* Converts the client data to a serialized skin.
|
|
2652
|
+
* @param data The client data to convert.
|
|
2653
|
+
* @returns The serialized skin.
|
|
2654
|
+
*/
|
|
2655
|
+
static from(data: ClientData): SerializedSkin;
|
|
2575
2656
|
}
|
|
2576
2657
|
|
|
2577
2658
|
declare class PlayerListRecord extends DataType {
|
|
@@ -5126,4 +5207,4 @@ declare const PROTOCOL_VERSION = 686;
|
|
|
5126
5207
|
declare const MINECRAFT_VERSION = "1.21.2";
|
|
5127
5208
|
declare const MINECRAFT_TICK_SPEED = 50;
|
|
5128
5209
|
|
|
5129
|
-
export { type AbilityFlag, AbilityLayerFlag, AbilityLayerType, AbilityLayers, AbilitySet, ActionIds, ActorDamageCause, ActorDataId, ActorDataType, ActorEventIds, ActorEventPacket, ActorFlag, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableActorIdentifiersPacket, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockActorDataPacket, BlockCoordinates, BlockFace, BlockPickRequestPacket, BlockProperties, BookActions, BookEditAction, BookEditPacket, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, CameraAudioListener, CameraFadeDuration, CameraFadeInstruction, CameraInstructions, CameraInstructionsPacket, CameraPreset, CameraPresetsPacket, CameraSetEasing, CameraSetInstruction, CameraShakePacket, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, ClientboundCloseFormPacket, Color, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, CompletedUsingItemPacket, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerDataType, ContainerId, ContainerMixDataEntry, ContainerName, ContainerOpenPacket, ContainerSetDataPacket, ContainerType, CraftingDataEntry, CraftingDataEntryType, CraftingDataPacket, CreativeContentPacket, CreativeItems, DataItem, DataPacket, DeathInfoPacket, DeathParameters, DeviceOS, Difficulty, DimensionType, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EasingType, EffectType, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, Enchantment, type EncodedAbilityFlags, EntityAttributes, EnumConstraints, EnumValues, Enums, EquipmentSlot, Experiments, Framer, GameRuleType, GameRules, Gamemode, HUDElement, HUDElementId, HUDVisibility, InteractActions, InteractPacket, InteractPosition, InternalType, InventoryAction, InventoryContentPacket, InventoryLayout, InventoryLeftTab, InventoryRightTab, InventorySlotPacket, InventorySource, InventorySourceType, InventoryTransaction, InventoryTransactionPacket, ItemComponentPacket, ItemData, ItemInstanceUserData, ItemReleaseInventoryTransaction, ItemReleaseInventoryTransactionType, type ItemStackAction, ItemStackActionType, type ItemStackContainer, ItemStackRequestPacket, ItemStackRequests, ItemStackResponsePacket, ItemStackResponses, ItemStackStatus, ItemStacks, ItemUseInventoryTransaction, ItemUseInventoryTransactionType, ItemUseMethod, ItemUseOnEntityInventoryTransaction, ItemUseOnEntityInventoryTransactionType, LegacyTransaction, LevelChunkPacket, LevelEvent, LevelEventPacket, LevelSoundEvent, LevelSoundEventPacket, Links, LoginPacket, LoginTokens, MINECRAFT_TICK_SPEED, MINECRAFT_VERSION, MaterialReducerDataEntry, MobEffectEvents, MobEffectPacket, MobEquipmentPacket, ModalFormCanceled, ModalFormCanceledReason, ModalFormData, ModalFormRequestPacket, ModalFormResponsePacket, ModalFormType, MoveActorAbsolutePacket, MoveMode, MovePlayerPacket, NetworkChunkPublisherUpdatePacket, NetworkItemInstanceDescriptor, NetworkItemStackDescriptor, NetworkSettingsPacket, NetworkStackLatencyPacket, NpcDialogueAction, NpcDialoguePacket, NpcRequestPacket, NpcRequestType, ObjectiveSortOrder, OpenSignPacket, Optional, PROTOCOL_VERSION, PackLinks, PackType, Packet, PacketViolationWarningPacket, Packets, PermissionLevel, PlayStatus, PlayStatusPacket, PlayerActionPacket, PlayerAuthInputData, PlayerAuthInputPacket, PlayerHotbarPacket, PlayerListAction, PlayerListPacket, PlayerListRecord, PlayerSkinPacket, PlayerStartItemCooldownPacket, PostFixes, PotionMixDataEntry, PropertySyncData, RecipeIngredient, RecipeUnlockingRequirement, RemoveEntityPacket, RemoveObjectivePacket, RequestChunkRadiusPacket, RequestNetworkSettingsPacket, ResourceIdVersions, ResourcePackChunkDataPacket, ResourcePackChunkRequestPacket, ResourcePackClientResponsePacket, ResourcePackDataInfoPacket, ResourcePackIds, ResourcePackResponse, ResourcePackStackPacket, ResourcePacksInfoPacket, RespawnPacket, RespawnState, Rotation, ScoreEntry, ScoreboardActionType, ScoreboardIdentity, ScoreboardIdentityAction, ScoreboardIdentityType, ScriptMessagePacket, SerializedSkin, ServerToClientHandshakePacket, ServerboundLoadingScreenPacketPacket, ServerboundLoadingScreenType, SetActorDataPacket, SetActorMotionPacket, SetCommandsEnabledPacket, SetDisplayObjectivePacket, SetHudPacket, SetLocalPlayerAsInitializedPacket, SetPlayerGameTypePacket, SetPlayerInventoryOptionsPacket, SetScorePacket, SetScoreboardIdentityPacket, SetTimePacket, SetTitlePacket, ShakeAction, ShakeType, ShapedRecipe, ShapelessRecipe, SkinAnimation, SkinImage, SkinPersonaPiece, SkinPersonaTintPiece, SpawnParticleEffectPacket, StackRequestSlotInfo, StartGamePacket, Subcommands, TakeItemActorPacket, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleTypes, ToastRequestPacket, TransactionSourceType, TransferPacket, UnlockingContext, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, VariableStringArray as VarStringArray, VarintArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };
|
|
5210
|
+
export { type AbilityFlag, AbilityLayerFlag, AbilityLayerType, AbilityLayers, AbilitySet, ActionIds, ActorDamageCause, ActorDataId, ActorDataType, ActorEventIds, ActorEventPacket, ActorFlag, AddEntityPacket, AddItemActorPacket, AddPlayerPacket, AnimateAction, AnimateEntity, AnimateEntityPacket, AnimateId, AnimatePacket, Attribute, AttributeModifier, AttributeName, AvailableActorIdentifiersPacket, AvailableCommandsPacket, AwardAchievementPacket, BehaviorPackInfo, BiomeDefinitionListPacket, BlockActorDataPacket, BlockCoordinates, BlockFace, BlockPickRequestPacket, BlockProperties, BookActions, BookEditAction, BookEditPacket, BossEventAdd, BossEventColor, BossEventPacket, BossEventUpdate, BossEventUpdateType, CameraAudioListener, CameraFadeDuration, CameraFadeInstruction, CameraInstructions, CameraInstructionsPacket, CameraPreset, CameraPresetsPacket, CameraSetEasing, CameraSetInstruction, CameraShakePacket, ChainedSubcommandValues, ChangeDimensionPacket, ChunkCoords, ChunkRadiusUpdatePacket, type ClientData, ClientboundCloseFormPacket, Color, CommandOriginData, CommandOutputData, CommandOutputMessage, CommandOutputPacket, CommandParameterType, CommandPermissionLevel, CommandRequestPacket, Commands, CompletedUsingItemPacket, ComplexInventoryTransaction, ComponentItem, CompressionMethod, ContainerClosePacket, ContainerDataType, ContainerId, ContainerMixDataEntry, ContainerName, ContainerOpenPacket, ContainerSetDataPacket, ContainerType, CraftingDataEntry, CraftingDataEntryType, CraftingDataPacket, CreativeContentPacket, CreativeItems, DataItem, DataPacket, DeathInfoPacket, DeathParameters, DeviceOS, Difficulty, DimensionType, DisconnectPacket, DisconnectReason, DisplaySlotType, DynamicEnums, EasingType, EffectType, EmoteFlags, EmoteListPacket, EmotePacket, Emotes, Enchantment, type EncodedAbilityFlags, EntityAttributes, EnumConstraints, EnumValues, Enums, EquipmentSlot, Experiments, Framer, GameRuleType, GameRules, Gamemode, HUDElement, HUDElementId, HUDVisibility, type IdentityData, InteractActions, InteractPacket, InteractPosition, InternalType, InventoryAction, InventoryContentPacket, InventoryLayout, InventoryLeftTab, InventoryRightTab, InventorySlotPacket, InventorySource, InventorySourceType, InventoryTransaction, InventoryTransactionPacket, ItemComponentPacket, ItemData, ItemInstanceUserData, ItemReleaseInventoryTransaction, ItemReleaseInventoryTransactionType, type ItemStackAction, ItemStackActionType, type ItemStackContainer, ItemStackRequestPacket, ItemStackRequests, ItemStackResponsePacket, ItemStackResponses, ItemStackStatus, ItemStacks, ItemUseInventoryTransaction, ItemUseInventoryTransactionType, ItemUseMethod, ItemUseOnEntityInventoryTransaction, ItemUseOnEntityInventoryTransactionType, LegacyTransaction, LevelChunkPacket, LevelEvent, LevelEventPacket, LevelSoundEvent, LevelSoundEventPacket, Links, LoginPacket, type LoginTokenData, LoginTokens, MINECRAFT_TICK_SPEED, MINECRAFT_VERSION, MaterialReducerDataEntry, MobEffectEvents, MobEffectPacket, MobEquipmentPacket, ModalFormCanceled, ModalFormCanceledReason, ModalFormData, ModalFormRequestPacket, ModalFormResponsePacket, ModalFormType, MoveActorAbsolutePacket, MoveMode, MovePlayerPacket, NetworkChunkPublisherUpdatePacket, NetworkItemInstanceDescriptor, NetworkItemStackDescriptor, NetworkSettingsPacket, NetworkStackLatencyPacket, NpcDialogueAction, NpcDialoguePacket, NpcRequestPacket, NpcRequestType, ObjectiveSortOrder, OpenSignPacket, Optional, PROTOCOL_VERSION, PackLinks, PackType, Packet, PacketViolationWarningPacket, Packets, PermissionLevel, PlayStatus, PlayStatusPacket, PlayerActionPacket, PlayerAuthInputData, PlayerAuthInputPacket, PlayerHotbarPacket, PlayerListAction, PlayerListPacket, PlayerListRecord, PlayerSkinPacket, PlayerStartItemCooldownPacket, PostFixes, PotionMixDataEntry, PropertySyncData, RecipeIngredient, RecipeUnlockingRequirement, RemoveEntityPacket, RemoveObjectivePacket, RequestChunkRadiusPacket, RequestNetworkSettingsPacket, ResourceIdVersions, ResourcePackChunkDataPacket, ResourcePackChunkRequestPacket, ResourcePackClientResponsePacket, ResourcePackDataInfoPacket, ResourcePackIds, ResourcePackResponse, ResourcePackStackPacket, ResourcePacksInfoPacket, RespawnPacket, RespawnState, Rotation, ScoreEntry, ScoreboardActionType, ScoreboardIdentity, ScoreboardIdentityAction, ScoreboardIdentityType, ScriptMessagePacket, SerializedSkin, ServerToClientHandshakePacket, ServerboundLoadingScreenPacketPacket, ServerboundLoadingScreenType, SetActorDataPacket, SetActorMotionPacket, SetCommandsEnabledPacket, SetDisplayObjectivePacket, SetHudPacket, SetLocalPlayerAsInitializedPacket, SetPlayerGameTypePacket, SetPlayerInventoryOptionsPacket, SetScorePacket, SetScoreboardIdentityPacket, SetTimePacket, SetTitlePacket, ShakeAction, ShakeType, ShapedRecipe, ShapelessRecipe, SkinAnimation, SkinImage, SkinPersonaPiece, SkinPersonaTintPiece, SpawnParticleEffectPacket, StackRequestSlotInfo, StartGamePacket, Subcommands, TakeItemActorPacket, TeleportCause, TextPacket, TextPacketType, TextParameters, TextSource, TexturePackInfo, TitleTypes, ToastRequestPacket, TransactionSourceType, TransferPacket, UnlockingContext, UpdateAbilitiesPacket, UpdateAdventureSettingsPacket, UpdateAttributesPacket, UpdateBlockFlagsType, UpdateBlockLayerType, UpdateBlockPacket, VariableStringArray as VarStringArray, VarintArray, Vector2f, Vector3f, ViolationSeverity, ViolationType, getPacketId };
|
package/dist/index.js
CHANGED
|
@@ -3267,15 +3267,14 @@ var SkinImage = class _SkinImage extends import_raknet15.DataType {
|
|
|
3267
3267
|
const width = stream.readUint32(import_binarystream10.Endianness.Little);
|
|
3268
3268
|
const height = stream.readUint32(import_binarystream10.Endianness.Little);
|
|
3269
3269
|
const length = stream.readVarInt();
|
|
3270
|
-
const
|
|
3271
|
-
return new _SkinImage(width, height,
|
|
3270
|
+
const buffer = stream.readBuffer(length);
|
|
3271
|
+
return new _SkinImage(width, height, buffer);
|
|
3272
3272
|
}
|
|
3273
3273
|
static write(stream, image) {
|
|
3274
3274
|
stream.writeUint32(image.width, import_binarystream10.Endianness.Little);
|
|
3275
3275
|
stream.writeUint32(image.height, import_binarystream10.Endianness.Little);
|
|
3276
|
-
|
|
3277
|
-
stream.
|
|
3278
|
-
stream.writeBuffer(buffer);
|
|
3276
|
+
stream.writeVarInt(image.data.length);
|
|
3277
|
+
stream.writeBuffer(image.data);
|
|
3279
3278
|
}
|
|
3280
3279
|
};
|
|
3281
3280
|
|
|
@@ -3650,6 +3649,71 @@ var SerializedSkin = class _SerializedSkin extends import_raknet19.DataType {
|
|
|
3650
3649
|
stream.writeBool(skin.isPrimaryUser);
|
|
3651
3650
|
stream.writeBool(skin.overridingPlayerAppearance);
|
|
3652
3651
|
}
|
|
3652
|
+
/**
|
|
3653
|
+
* Converts the client data to a serialized skin.
|
|
3654
|
+
* @param data The client data to convert.
|
|
3655
|
+
* @returns The serialized skin.
|
|
3656
|
+
*/
|
|
3657
|
+
static from(data) {
|
|
3658
|
+
return {
|
|
3659
|
+
identifier: data.SkinId,
|
|
3660
|
+
playFabIdentifier: data.PlayFabId,
|
|
3661
|
+
resourcePatch: Buffer.from(data.SkinResourcePatch, "base64").toString(
|
|
3662
|
+
"utf8"
|
|
3663
|
+
),
|
|
3664
|
+
skinImage: new SkinImage(
|
|
3665
|
+
data.SkinImageWidth,
|
|
3666
|
+
data.SkinImageHeight,
|
|
3667
|
+
Buffer.from(data.SkinData, "base64")
|
|
3668
|
+
),
|
|
3669
|
+
animations: data.AnimatedImageData.map(
|
|
3670
|
+
(animation) => new SkinAnimation(
|
|
3671
|
+
new SkinImage(
|
|
3672
|
+
animation.ImageWidth,
|
|
3673
|
+
animation.ImageHeight,
|
|
3674
|
+
Buffer.from(animation.Image, "base64")
|
|
3675
|
+
),
|
|
3676
|
+
animation.Frames,
|
|
3677
|
+
animation.AnimationExpression,
|
|
3678
|
+
animation.Type
|
|
3679
|
+
)
|
|
3680
|
+
),
|
|
3681
|
+
capeImage: new SkinImage(
|
|
3682
|
+
data.CapeImageWidth,
|
|
3683
|
+
data.CapeImageHeight,
|
|
3684
|
+
Buffer.from(data.CapeData, "base64")
|
|
3685
|
+
),
|
|
3686
|
+
geometryData: Buffer.from(data.SkinGeometryData, "base64").toString(
|
|
3687
|
+
"utf8"
|
|
3688
|
+
),
|
|
3689
|
+
geometryVersion: Buffer.from(
|
|
3690
|
+
data.SkinGeometryDataEngineVersion,
|
|
3691
|
+
"base64"
|
|
3692
|
+
).toString("utf8"),
|
|
3693
|
+
animationData: data.SkinAnimationData,
|
|
3694
|
+
capeIdentifier: data.CapeId,
|
|
3695
|
+
fullIdentifier: data.SkinId + data.CapeId,
|
|
3696
|
+
armSize: data.ArmSize,
|
|
3697
|
+
skinColor: data.SkinColor,
|
|
3698
|
+
personaPieces: data.PersonaPieces.map(
|
|
3699
|
+
(piece) => new SkinPersonaPiece(
|
|
3700
|
+
piece.PieceId,
|
|
3701
|
+
piece.PieceType,
|
|
3702
|
+
piece.PackId,
|
|
3703
|
+
piece.IsDefault,
|
|
3704
|
+
piece.ProductId
|
|
3705
|
+
)
|
|
3706
|
+
),
|
|
3707
|
+
tintPieces: data.PieceTintColors.map(
|
|
3708
|
+
(tint) => new SkinPersonaTintPiece(tint.PieceType, tint.Colors)
|
|
3709
|
+
),
|
|
3710
|
+
isPremium: data.PremiumSkin,
|
|
3711
|
+
isPersona: data.PersonaSkin,
|
|
3712
|
+
isPersonaCapeOnClassic: data.CapeOnClassicSkin,
|
|
3713
|
+
isPrimaryUser: data.TrustedSkin,
|
|
3714
|
+
overridingPlayerAppearance: data.OverrideSkin
|
|
3715
|
+
};
|
|
3716
|
+
}
|
|
3653
3717
|
};
|
|
3654
3718
|
|
|
3655
3719
|
// src/proto/types/player-list-record.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenityjs/protocol",
|
|
3
|
-
"version": "0.4.1
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"repository": "https://github.com/SerenityJS/serenity",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"preset": "@serenityjs/jest-presets/jest/node"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@serenityjs/eslint-config": "
|
|
22
|
-
"@serenityjs/jest-presets": "
|
|
23
|
-
"@serenityjs/typescript-config": "
|
|
21
|
+
"@serenityjs/eslint-config": "*",
|
|
22
|
+
"@serenityjs/jest-presets": "*",
|
|
23
|
+
"@serenityjs/typescript-config": "*",
|
|
24
24
|
"@types/jest": "^29.5.12",
|
|
25
25
|
"@types/node": "^20.11.24",
|
|
26
26
|
"jest": "^29.7.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@serenityjs/binarystream": "^2.6.6",
|
|
32
|
-
"@serenityjs/nbt": "
|
|
33
|
-
"@serenityjs/raknet": "
|
|
32
|
+
"@serenityjs/nbt": "*",
|
|
33
|
+
"@serenityjs/raknet": "*"
|
|
34
34
|
}
|
|
35
35
|
}
|