Packet descriptions
This commit is contained in:
23
lib/classes/packets/AbortXfer.ts
Normal file
23
lib/classes/packets/AbortXfer.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AbortXferPacket implements Packet
|
||||
{
|
||||
name = 'AbortXfer';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901917;
|
||||
|
||||
XferID: {
|
||||
ID: Long;
|
||||
Result: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 12;
|
||||
}
|
||||
|
||||
}
|
||||
29
lib/classes/packets/AcceptCallingCard.ts
Normal file
29
lib/classes/packets/AcceptCallingCard.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AcceptCallingCardPacket implements Packet
|
||||
{
|
||||
name = 'AcceptCallingCard';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902062;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
TransactionBlock: {
|
||||
TransactionID: UUID;
|
||||
};
|
||||
FolderData: {
|
||||
FolderID: UUID;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((16) * this.FolderData.length) + 49;
|
||||
}
|
||||
|
||||
}
|
||||
29
lib/classes/packets/AcceptFriendship.ts
Normal file
29
lib/classes/packets/AcceptFriendship.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AcceptFriendshipPacket implements Packet
|
||||
{
|
||||
name = 'AcceptFriendship';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902057;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
TransactionBlock: {
|
||||
TransactionID: UUID;
|
||||
};
|
||||
FolderData: {
|
||||
FolderID: UUID;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((16) * this.FolderData.length) + 49;
|
||||
}
|
||||
|
||||
}
|
||||
29
lib/classes/packets/ActivateGestures.ts
Normal file
29
lib/classes/packets/ActivateGestures.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ActivateGesturesPacket implements Packet
|
||||
{
|
||||
name = 'ActivateGestures';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902076;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
Flags: number;
|
||||
};
|
||||
Data: {
|
||||
ItemID: UUID;
|
||||
AssetID: UUID;
|
||||
GestureFlags: number;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((36) * this.Data.length) + 37;
|
||||
}
|
||||
|
||||
}
|
||||
24
lib/classes/packets/ActivateGroup.ts
Normal file
24
lib/classes/packets/ActivateGroup.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ActivateGroupPacket implements Packet
|
||||
{
|
||||
name = 'ActivateGroup';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294902128;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
GroupID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 48;
|
||||
}
|
||||
|
||||
}
|
||||
24
lib/classes/packets/AddCircuitCode.ts
Normal file
24
lib/classes/packets/AddCircuitCode.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AddCircuitCodePacket implements Packet
|
||||
{
|
||||
name = 'AddCircuitCode';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901762;
|
||||
|
||||
CircuitCode: {
|
||||
Code: number;
|
||||
SessionID: UUID;
|
||||
AgentID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 36;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/AgentAlertMessage.ts
Normal file
26
lib/classes/packets/AgentAlertMessage.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentAlertMessagePacket implements Packet
|
||||
{
|
||||
name = 'AgentAlertMessage';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901895;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
};
|
||||
AlertData: {
|
||||
Modal: boolean;
|
||||
Message: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.AlertData['Message'].length + 1) + 17;
|
||||
}
|
||||
|
||||
}
|
||||
40
lib/classes/packets/AgentAnimation.ts
Normal file
40
lib/classes/packets/AgentAnimation.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentAnimationPacket implements Packet
|
||||
{
|
||||
name = 'AgentAnimation';
|
||||
flags = MessageFlags.FrequencyHigh;
|
||||
id = 5;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
AnimationList: {
|
||||
AnimID: UUID;
|
||||
StartAnim: boolean;
|
||||
}[];
|
||||
PhysicalAvatarEventList: {
|
||||
TypeData: string;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((17) * this.AnimationList.length) + ((this.calculateVarVarSize(this.PhysicalAvatarEventList, 'TypeData', 1)) * this.PhysicalAvatarEventList.length) + 34;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
28
lib/classes/packets/AgentCachedTexture.ts
Normal file
28
lib/classes/packets/AgentCachedTexture.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentCachedTexturePacket implements Packet
|
||||
{
|
||||
name = 'AgentCachedTexture';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902144;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
SerialNum: number;
|
||||
};
|
||||
WearableData: {
|
||||
ID: UUID;
|
||||
TextureIndex: number;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((17) * this.WearableData.length) + 37;
|
||||
}
|
||||
|
||||
}
|
||||
39
lib/classes/packets/AgentCachedTextureResponse.ts
Normal file
39
lib/classes/packets/AgentCachedTextureResponse.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentCachedTextureResponsePacket implements Packet
|
||||
{
|
||||
name = 'AgentCachedTextureResponse';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294902145;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
SerialNum: number;
|
||||
};
|
||||
WearableData: {
|
||||
TextureID: UUID;
|
||||
TextureIndex: number;
|
||||
HostName: string;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((this.calculateVarVarSize(this.WearableData, 'HostName', 1) + 17) * this.WearableData.length) + 37;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
29
lib/classes/packets/AgentDataUpdate.ts
Normal file
29
lib/classes/packets/AgentDataUpdate.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentDataUpdatePacket implements Packet
|
||||
{
|
||||
name = 'AgentDataUpdate';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294902147;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
FirstName: string;
|
||||
LastName: string;
|
||||
GroupTitle: string;
|
||||
ActiveGroupID: UUID;
|
||||
GroupPowers: Long;
|
||||
GroupName: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.AgentData['FirstName'].length + 1 + this.AgentData['LastName'].length + 1 + this.AgentData['GroupTitle'].length + 1 + this.AgentData['GroupName'].length + 1) + 40;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/AgentDataUpdateRequest.ts
Normal file
23
lib/classes/packets/AgentDataUpdateRequest.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentDataUpdateRequestPacket implements Packet
|
||||
{
|
||||
name = 'AgentDataUpdateRequest';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902146;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 32;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/AgentDropGroup.ts
Normal file
23
lib/classes/packets/AgentDropGroup.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentDropGroupPacket implements Packet
|
||||
{
|
||||
name = 'AgentDropGroup';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.Deprecated | MessageFlags.FrequencyLow;
|
||||
id = 4294902150;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
GroupID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 32;
|
||||
}
|
||||
|
||||
}
|
||||
28
lib/classes/packets/AgentFOV.ts
Normal file
28
lib/classes/packets/AgentFOV.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentFOVPacket implements Packet
|
||||
{
|
||||
name = 'AgentFOV';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901842;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
CircuitCode: number;
|
||||
};
|
||||
FOVBlock: {
|
||||
GenCounter: number;
|
||||
VerticalAngle: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 44;
|
||||
}
|
||||
|
||||
}
|
||||
41
lib/classes/packets/AgentGroupDataUpdate.ts
Normal file
41
lib/classes/packets/AgentGroupDataUpdate.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentGroupDataUpdatePacket implements Packet
|
||||
{
|
||||
name = 'AgentGroupDataUpdate';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.Deprecated | MessageFlags.FrequencyLow;
|
||||
id = 4294902149;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
};
|
||||
GroupData: {
|
||||
GroupID: UUID;
|
||||
GroupPowers: Long;
|
||||
AcceptNotices: boolean;
|
||||
GroupInsigniaID: UUID;
|
||||
Contribution: number;
|
||||
GroupName: string;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((this.calculateVarVarSize(this.GroupData, 'GroupName', 1) + 45) * this.GroupData.length) + 17;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
29
lib/classes/packets/AgentHeightWidth.ts
Normal file
29
lib/classes/packets/AgentHeightWidth.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentHeightWidthPacket implements Packet
|
||||
{
|
||||
name = 'AgentHeightWidth';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901843;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
CircuitCode: number;
|
||||
};
|
||||
HeightWidthBlock: {
|
||||
GenCounter: number;
|
||||
Height: number;
|
||||
Width: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 44;
|
||||
}
|
||||
|
||||
}
|
||||
27
lib/classes/packets/AgentIsNowWearing.ts
Normal file
27
lib/classes/packets/AgentIsNowWearing.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentIsNowWearingPacket implements Packet
|
||||
{
|
||||
name = 'AgentIsNowWearing';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294902143;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
WearableData: {
|
||||
ItemID: UUID;
|
||||
WearableType: number;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((17) * this.WearableData.length) + 33;
|
||||
}
|
||||
|
||||
}
|
||||
34
lib/classes/packets/AgentMovementComplete.ts
Normal file
34
lib/classes/packets/AgentMovementComplete.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentMovementCompletePacket implements Packet
|
||||
{
|
||||
name = 'AgentMovementComplete';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902010;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
Data: {
|
||||
Position: Vector3;
|
||||
LookAt: Vector3;
|
||||
RegionHandle: Long;
|
||||
Timestamp: number;
|
||||
};
|
||||
SimData: {
|
||||
ChannelVersion: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.SimData['ChannelVersion'].length + 2) + 68;
|
||||
}
|
||||
|
||||
}
|
||||
24
lib/classes/packets/AgentPause.ts
Normal file
24
lib/classes/packets/AgentPause.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentPausePacket implements Packet
|
||||
{
|
||||
name = 'AgentPause';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901838;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
SerialNum: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 36;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/AgentQuitCopy.ts
Normal file
26
lib/classes/packets/AgentQuitCopy.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentQuitCopyPacket implements Packet
|
||||
{
|
||||
name = 'AgentQuitCopy';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901845;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
FuseBlock: {
|
||||
ViewerCircuitCode: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 36;
|
||||
}
|
||||
|
||||
}
|
||||
28
lib/classes/packets/AgentRequestSit.ts
Normal file
28
lib/classes/packets/AgentRequestSit.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentRequestSitPacket implements Packet
|
||||
{
|
||||
name = 'AgentRequestSit';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyHigh;
|
||||
id = 6;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
TargetObject: {
|
||||
TargetID: UUID;
|
||||
Offset: Vector3;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 60;
|
||||
}
|
||||
|
||||
}
|
||||
24
lib/classes/packets/AgentResume.ts
Normal file
24
lib/classes/packets/AgentResume.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentResumePacket implements Packet
|
||||
{
|
||||
name = 'AgentResume';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901839;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
SerialNum: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 36;
|
||||
}
|
||||
|
||||
}
|
||||
36
lib/classes/packets/AgentSetAppearance.ts
Normal file
36
lib/classes/packets/AgentSetAppearance.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentSetAppearancePacket implements Packet
|
||||
{
|
||||
name = 'AgentSetAppearance';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901844;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
SerialNum: number;
|
||||
Size: Vector3;
|
||||
};
|
||||
WearableData: {
|
||||
CacheID: UUID;
|
||||
TextureIndex: number;
|
||||
}[];
|
||||
ObjectData: {
|
||||
TextureEntry: string;
|
||||
};
|
||||
VisualParam: {
|
||||
ParamValue: number;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((17) * this.WearableData.length) + (this.ObjectData['TextureEntry'].length + 2) + ((1) * this.VisualParam.length) + 50;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/AgentSit.ts
Normal file
23
lib/classes/packets/AgentSit.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentSitPacket implements Packet
|
||||
{
|
||||
name = 'AgentSit';
|
||||
flags = MessageFlags.FrequencyHigh;
|
||||
id = 7;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 32;
|
||||
}
|
||||
|
||||
}
|
||||
28
lib/classes/packets/AgentThrottle.ts
Normal file
28
lib/classes/packets/AgentThrottle.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentThrottlePacket implements Packet
|
||||
{
|
||||
name = 'AgentThrottle';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901841;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
CircuitCode: number;
|
||||
};
|
||||
Throttle: {
|
||||
GenCounter: number;
|
||||
Throttles: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.Throttle['Throttles'].length + 1) + 40;
|
||||
}
|
||||
|
||||
}
|
||||
35
lib/classes/packets/AgentUpdate.ts
Normal file
35
lib/classes/packets/AgentUpdate.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import {Quaternion} from '../Quaternion';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentUpdatePacket implements Packet
|
||||
{
|
||||
name = 'AgentUpdate';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyHigh;
|
||||
id = 4;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
BodyRotation: Quaternion;
|
||||
HeadRotation: Quaternion;
|
||||
State: number;
|
||||
CameraCenter: Vector3;
|
||||
CameraAtAxis: Vector3;
|
||||
CameraLeftAxis: Vector3;
|
||||
CameraUpAxis: Vector3;
|
||||
Far: number;
|
||||
ControlFlags: number;
|
||||
Flags: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 114;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/AgentWearablesRequest.ts
Normal file
23
lib/classes/packets/AgentWearablesRequest.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentWearablesRequestPacket implements Packet
|
||||
{
|
||||
name = 'AgentWearablesRequest';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902141;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 32;
|
||||
}
|
||||
|
||||
}
|
||||
29
lib/classes/packets/AgentWearablesUpdate.ts
Normal file
29
lib/classes/packets/AgentWearablesUpdate.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AgentWearablesUpdatePacket implements Packet
|
||||
{
|
||||
name = 'AgentWearablesUpdate';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294902142;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
SerialNum: number;
|
||||
};
|
||||
WearableData: {
|
||||
ItemID: UUID;
|
||||
AssetID: UUID;
|
||||
WearableType: number;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((33) * this.WearableData.length) + 37;
|
||||
}
|
||||
|
||||
}
|
||||
39
lib/classes/packets/AlertMessage.ts
Normal file
39
lib/classes/packets/AlertMessage.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AlertMessagePacket implements Packet
|
||||
{
|
||||
name = 'AlertMessage';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901894;
|
||||
|
||||
AlertData: {
|
||||
Message: string;
|
||||
};
|
||||
AlertInfo: {
|
||||
Message: string;
|
||||
ExtraParams: string;
|
||||
}[];
|
||||
AgentInfo: {
|
||||
AgentID: UUID;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.AlertData['Message'].length + 1) + ((this.calculateVarVarSize(this.AlertInfo, 'Message', 1) + this.calculateVarVarSize(this.AlertInfo, 'ExtraParams', 1)) * this.AlertInfo.length) + ((16) * this.AgentInfo.length) + 2;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
24
lib/classes/packets/AssetUploadComplete.ts
Normal file
24
lib/classes/packets/AssetUploadComplete.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AssetUploadCompletePacket implements Packet
|
||||
{
|
||||
name = 'AssetUploadComplete';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902094;
|
||||
|
||||
AssetBlock: {
|
||||
UUID: UUID;
|
||||
Type: number;
|
||||
Success: boolean;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 18;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/AssetUploadRequest.ts
Normal file
26
lib/classes/packets/AssetUploadRequest.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AssetUploadRequestPacket implements Packet
|
||||
{
|
||||
name = 'AssetUploadRequest';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902093;
|
||||
|
||||
AssetBlock: {
|
||||
TransactionID: UUID;
|
||||
Type: number;
|
||||
Tempfile: boolean;
|
||||
StoreLocal: boolean;
|
||||
AssetData: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.AssetBlock['AssetData'].length + 2) + 19;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/AtomicPassObject.ts
Normal file
23
lib/classes/packets/AtomicPassObject.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AtomicPassObjectPacket implements Packet
|
||||
{
|
||||
name = 'AtomicPassObject';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyHigh;
|
||||
id = 28;
|
||||
|
||||
TaskData: {
|
||||
TaskID: UUID;
|
||||
AttachmentNeedsSave: boolean;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 17;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/AttachedSound.ts
Normal file
26
lib/classes/packets/AttachedSound.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AttachedSoundPacket implements Packet
|
||||
{
|
||||
name = 'AttachedSound';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyMedium;
|
||||
id = 65293;
|
||||
|
||||
DataBlock: {
|
||||
SoundID: UUID;
|
||||
ObjectID: UUID;
|
||||
OwnerID: UUID;
|
||||
Gain: number;
|
||||
Flags: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 53;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/AttachedSoundGainChange.ts
Normal file
23
lib/classes/packets/AttachedSoundGainChange.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AttachedSoundGainChangePacket implements Packet
|
||||
{
|
||||
name = 'AttachedSoundGainChange';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyMedium;
|
||||
id = 65294;
|
||||
|
||||
DataBlock: {
|
||||
ObjectID: UUID;
|
||||
Gain: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
}
|
||||
42
lib/classes/packets/AvatarAnimation.ts
Normal file
42
lib/classes/packets/AvatarAnimation.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarAnimationPacket implements Packet
|
||||
{
|
||||
name = 'AvatarAnimation';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyHigh;
|
||||
id = 20;
|
||||
|
||||
Sender: {
|
||||
ID: UUID;
|
||||
};
|
||||
AnimationList: {
|
||||
AnimID: UUID;
|
||||
AnimSequenceID: number;
|
||||
}[];
|
||||
AnimationSourceList: {
|
||||
ObjectID: UUID;
|
||||
}[];
|
||||
PhysicalAvatarEventList: {
|
||||
TypeData: string;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((20) * this.AnimationList.length) + ((16) * this.AnimationSourceList.length) + ((this.calculateVarVarSize(this.PhysicalAvatarEventList, 'TypeData', 1)) * this.PhysicalAvatarEventList.length) + 19;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
38
lib/classes/packets/AvatarAppearance.ts
Normal file
38
lib/classes/packets/AvatarAppearance.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarAppearancePacket implements Packet
|
||||
{
|
||||
name = 'AvatarAppearance';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901918;
|
||||
|
||||
Sender: {
|
||||
ID: UUID;
|
||||
IsTrial: boolean;
|
||||
};
|
||||
ObjectData: {
|
||||
TextureEntry: string;
|
||||
};
|
||||
VisualParam: {
|
||||
ParamValue: number;
|
||||
}[];
|
||||
AppearanceData: {
|
||||
AppearanceVersion: number;
|
||||
CofVersion: number;
|
||||
Flags: number;
|
||||
}[];
|
||||
AppearanceHover: {
|
||||
HoverHeight: Vector3;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.ObjectData['TextureEntry'].length + 2) + ((1) * this.VisualParam.length) + ((9) * this.AppearanceData.length) + ((12) * this.AppearanceHover.length) + 20;
|
||||
}
|
||||
|
||||
}
|
||||
37
lib/classes/packets/AvatarClassifiedReply.ts
Normal file
37
lib/classes/packets/AvatarClassifiedReply.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarClassifiedReplyPacket implements Packet
|
||||
{
|
||||
name = 'AvatarClassifiedReply';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901802;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
TargetID: UUID;
|
||||
};
|
||||
Data: {
|
||||
ClassifiedID: UUID;
|
||||
Name: string;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((this.calculateVarVarSize(this.Data, 'Name', 1) + 16) * this.Data.length) + 33;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
45
lib/classes/packets/AvatarGroupsReply.ts
Normal file
45
lib/classes/packets/AvatarGroupsReply.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarGroupsReplyPacket implements Packet
|
||||
{
|
||||
name = 'AvatarGroupsReply';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901933;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
AvatarID: UUID;
|
||||
};
|
||||
GroupData: {
|
||||
GroupPowers: Long;
|
||||
AcceptNotices: boolean;
|
||||
GroupTitle: string;
|
||||
GroupID: UUID;
|
||||
GroupName: string;
|
||||
GroupInsigniaID: UUID;
|
||||
}[];
|
||||
NewGroupData: {
|
||||
ListInProfile: boolean;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((this.calculateVarVarSize(this.GroupData, 'GroupTitle', 1) + this.calculateVarVarSize(this.GroupData, 'GroupName', 1) + 41) * this.GroupData.length) + 34;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
30
lib/classes/packets/AvatarInterestsReply.ts
Normal file
30
lib/classes/packets/AvatarInterestsReply.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarInterestsReplyPacket implements Packet
|
||||
{
|
||||
name = 'AvatarInterestsReply';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901932;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
AvatarID: UUID;
|
||||
};
|
||||
PropertiesData: {
|
||||
WantToMask: number;
|
||||
WantToText: string;
|
||||
SkillsMask: number;
|
||||
SkillsText: string;
|
||||
LanguagesText: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.PropertiesData['WantToText'].length + 1 + this.PropertiesData['SkillsText'].length + 1 + this.PropertiesData['LanguagesText'].length + 1) + 40;
|
||||
}
|
||||
|
||||
}
|
||||
30
lib/classes/packets/AvatarInterestsUpdate.ts
Normal file
30
lib/classes/packets/AvatarInterestsUpdate.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarInterestsUpdatePacket implements Packet
|
||||
{
|
||||
name = 'AvatarInterestsUpdate';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901935;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
PropertiesData: {
|
||||
WantToMask: number;
|
||||
WantToText: string;
|
||||
SkillsMask: number;
|
||||
SkillsText: string;
|
||||
LanguagesText: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.PropertiesData['WantToText'].length + 1 + this.PropertiesData['SkillsText'].length + 1 + this.PropertiesData['LanguagesText'].length + 1) + 40;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/AvatarNotesReply.ts
Normal file
26
lib/classes/packets/AvatarNotesReply.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarNotesReplyPacket implements Packet
|
||||
{
|
||||
name = 'AvatarNotesReply';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901936;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
};
|
||||
Data: {
|
||||
TargetID: UUID;
|
||||
Notes: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.Data['Notes'].length + 2) + 32;
|
||||
}
|
||||
|
||||
}
|
||||
27
lib/classes/packets/AvatarNotesUpdate.ts
Normal file
27
lib/classes/packets/AvatarNotesUpdate.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarNotesUpdatePacket implements Packet
|
||||
{
|
||||
name = 'AvatarNotesUpdate';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901937;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
Data: {
|
||||
TargetID: UUID;
|
||||
Notes: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.Data['Notes'].length + 2) + 48;
|
||||
}
|
||||
|
||||
}
|
||||
38
lib/classes/packets/AvatarPickerReply.ts
Normal file
38
lib/classes/packets/AvatarPickerReply.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarPickerReplyPacket implements Packet
|
||||
{
|
||||
name = 'AvatarPickerReply';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901788;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
QueryID: UUID;
|
||||
};
|
||||
Data: {
|
||||
AvatarID: UUID;
|
||||
FirstName: string;
|
||||
LastName: string;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((this.calculateVarVarSize(this.Data, 'FirstName', 1) + this.calculateVarVarSize(this.Data, 'LastName', 1) + 16) * this.Data.length) + 33;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
27
lib/classes/packets/AvatarPickerRequest.ts
Normal file
27
lib/classes/packets/AvatarPickerRequest.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarPickerRequestPacket implements Packet
|
||||
{
|
||||
name = 'AvatarPickerRequest';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901786;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
QueryID: UUID;
|
||||
};
|
||||
Data: {
|
||||
Name: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.Data['Name'].length + 1) + 48;
|
||||
}
|
||||
|
||||
}
|
||||
28
lib/classes/packets/AvatarPickerRequestBackend.ts
Normal file
28
lib/classes/packets/AvatarPickerRequestBackend.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarPickerRequestBackendPacket implements Packet
|
||||
{
|
||||
name = 'AvatarPickerRequestBackend';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901787;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
QueryID: UUID;
|
||||
GodLevel: number;
|
||||
};
|
||||
Data: {
|
||||
Name: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.Data['Name'].length + 1) + 49;
|
||||
}
|
||||
|
||||
}
|
||||
37
lib/classes/packets/AvatarPicksReply.ts
Normal file
37
lib/classes/packets/AvatarPicksReply.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarPicksReplyPacket implements Packet
|
||||
{
|
||||
name = 'AvatarPicksReply';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901938;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
TargetID: UUID;
|
||||
};
|
||||
Data: {
|
||||
PickID: UUID;
|
||||
PickName: string;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((this.calculateVarVarSize(this.Data, 'PickName', 1) + 16) * this.Data.length) + 33;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
34
lib/classes/packets/AvatarPropertiesReply.ts
Normal file
34
lib/classes/packets/AvatarPropertiesReply.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarPropertiesReplyPacket implements Packet
|
||||
{
|
||||
name = 'AvatarPropertiesReply';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901931;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
AvatarID: UUID;
|
||||
};
|
||||
PropertiesData: {
|
||||
ImageID: UUID;
|
||||
FLImageID: UUID;
|
||||
PartnerID: UUID;
|
||||
AboutText: string;
|
||||
FLAboutText: string;
|
||||
BornOn: string;
|
||||
ProfileURL: string;
|
||||
CharterMember: string;
|
||||
Flags: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.PropertiesData['AboutText'].length + 2 + this.PropertiesData['FLAboutText'].length + 1 + this.PropertiesData['BornOn'].length + 1 + this.PropertiesData['ProfileURL'].length + 1 + this.PropertiesData['CharterMember'].length + 1) + 84;
|
||||
}
|
||||
|
||||
}
|
||||
24
lib/classes/packets/AvatarPropertiesRequest.ts
Normal file
24
lib/classes/packets/AvatarPropertiesRequest.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarPropertiesRequestPacket implements Packet
|
||||
{
|
||||
name = 'AvatarPropertiesRequest';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901929;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
AvatarID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 48;
|
||||
}
|
||||
|
||||
}
|
||||
25
lib/classes/packets/AvatarPropertiesRequestBackend.ts
Normal file
25
lib/classes/packets/AvatarPropertiesRequestBackend.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarPropertiesRequestBackendPacket implements Packet
|
||||
{
|
||||
name = 'AvatarPropertiesRequestBackend';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901930;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
AvatarID: UUID;
|
||||
GodLevel: number;
|
||||
WebProfilesDisabled: boolean;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 34;
|
||||
}
|
||||
|
||||
}
|
||||
32
lib/classes/packets/AvatarPropertiesUpdate.ts
Normal file
32
lib/classes/packets/AvatarPropertiesUpdate.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarPropertiesUpdatePacket implements Packet
|
||||
{
|
||||
name = 'AvatarPropertiesUpdate';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901934;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
PropertiesData: {
|
||||
ImageID: UUID;
|
||||
FLImageID: UUID;
|
||||
AboutText: string;
|
||||
FLAboutText: string;
|
||||
AllowPublish: boolean;
|
||||
MaturePublish: boolean;
|
||||
ProfileURL: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.PropertiesData['AboutText'].length + 2 + this.PropertiesData['FLAboutText'].length + 1 + this.PropertiesData['ProfileURL'].length + 1) + 66;
|
||||
}
|
||||
|
||||
}
|
||||
32
lib/classes/packets/AvatarSitResponse.ts
Normal file
32
lib/classes/packets/AvatarSitResponse.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import {Quaternion} from '../Quaternion';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarSitResponsePacket implements Packet
|
||||
{
|
||||
name = 'AvatarSitResponse';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyHigh;
|
||||
id = 21;
|
||||
|
||||
SitObject: {
|
||||
ID: UUID;
|
||||
};
|
||||
SitTransform: {
|
||||
AutoPilot: boolean;
|
||||
SitPosition: Vector3;
|
||||
SitRotation: Quaternion;
|
||||
CameraEyeOffset: Vector3;
|
||||
CameraAtOffset: Vector3;
|
||||
ForceMouselook: boolean;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 66;
|
||||
}
|
||||
|
||||
}
|
||||
41
lib/classes/packets/AvatarTextureUpdate.ts
Normal file
41
lib/classes/packets/AvatarTextureUpdate.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class AvatarTextureUpdatePacket implements Packet
|
||||
{
|
||||
name = 'AvatarTextureUpdate';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901764;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
TexturesChanged: boolean;
|
||||
};
|
||||
WearableData: {
|
||||
CacheID: UUID;
|
||||
TextureIndex: number;
|
||||
HostName: string;
|
||||
}[];
|
||||
TextureData: {
|
||||
TextureID: UUID;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((this.calculateVarVarSize(this.WearableData, 'HostName', 1) + 17) * this.WearableData.length) + ((16) * this.TextureData.length) + 19;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
63
lib/classes/packets/BulkUpdateInventory.ts
Normal file
63
lib/classes/packets/BulkUpdateInventory.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class BulkUpdateInventoryPacket implements Packet
|
||||
{
|
||||
name = 'BulkUpdateInventory';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294902041;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
TransactionID: UUID;
|
||||
};
|
||||
FolderData: {
|
||||
FolderID: UUID;
|
||||
ParentID: UUID;
|
||||
Type: number;
|
||||
Name: string;
|
||||
}[];
|
||||
ItemData: {
|
||||
ItemID: UUID;
|
||||
CallbackID: number;
|
||||
FolderID: UUID;
|
||||
CreatorID: UUID;
|
||||
OwnerID: UUID;
|
||||
GroupID: UUID;
|
||||
BaseMask: number;
|
||||
OwnerMask: number;
|
||||
GroupMask: number;
|
||||
EveryoneMask: number;
|
||||
NextOwnerMask: number;
|
||||
GroupOwned: boolean;
|
||||
AssetID: UUID;
|
||||
Type: number;
|
||||
InvType: number;
|
||||
Flags: number;
|
||||
SaleType: number;
|
||||
SalePrice: number;
|
||||
Name: string;
|
||||
Description: string;
|
||||
CreationDate: number;
|
||||
CRC: number;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((this.calculateVarVarSize(this.FolderData, 'Name', 1) + 33) * this.FolderData.length) + ((this.calculateVarVarSize(this.ItemData, 'Name', 1) + this.calculateVarVarSize(this.ItemData, 'Description', 1) + 140) * this.ItemData.length) + 34;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
28
lib/classes/packets/BuyObjectInventory.ts
Normal file
28
lib/classes/packets/BuyObjectInventory.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class BuyObjectInventoryPacket implements Packet
|
||||
{
|
||||
name = 'BuyObjectInventory';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901863;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
Data: {
|
||||
ObjectID: UUID;
|
||||
ItemID: UUID;
|
||||
FolderID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 80;
|
||||
}
|
||||
|
||||
}
|
||||
22
lib/classes/packets/CameraConstraint.ts
Normal file
22
lib/classes/packets/CameraConstraint.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {Vector4} from '../Vector4';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CameraConstraintPacket implements Packet
|
||||
{
|
||||
name = 'CameraConstraint';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyHigh;
|
||||
id = 22;
|
||||
|
||||
CameraCollidePlane: {
|
||||
Plane: Vector4;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 16;
|
||||
}
|
||||
|
||||
}
|
||||
22
lib/classes/packets/CancelAuction.ts
Normal file
22
lib/classes/packets/CancelAuction.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CancelAuctionPacket implements Packet
|
||||
{
|
||||
name = 'CancelAuction';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901992;
|
||||
|
||||
ParcelData: {
|
||||
ParcelID: UUID;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((16) * this.ParcelData.length) + 1;
|
||||
}
|
||||
|
||||
}
|
||||
27
lib/classes/packets/ChangeInventoryItemFlags.ts
Normal file
27
lib/classes/packets/ChangeInventoryItemFlags.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ChangeInventoryItemFlagsPacket implements Packet
|
||||
{
|
||||
name = 'ChangeInventoryItemFlags';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902031;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
InventoryData: {
|
||||
ItemID: UUID;
|
||||
Flags: number;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((20) * this.InventoryData.length) + 33;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/ChangeUserRights.ts
Normal file
26
lib/classes/packets/ChangeUserRights.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ChangeUserRightsPacket implements Packet
|
||||
{
|
||||
name = 'ChangeUserRights';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294902081;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
};
|
||||
Rights: {
|
||||
AgentRelated: UUID;
|
||||
RelatedRights: number;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((20) * this.Rights.length) + 17;
|
||||
}
|
||||
|
||||
}
|
||||
30
lib/classes/packets/ChatFromSimulator.ts
Normal file
30
lib/classes/packets/ChatFromSimulator.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ChatFromSimulatorPacket implements Packet
|
||||
{
|
||||
name = 'ChatFromSimulator';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901899;
|
||||
|
||||
ChatData: {
|
||||
FromName: string;
|
||||
SourceID: UUID;
|
||||
OwnerID: UUID;
|
||||
SourceType: number;
|
||||
ChatType: number;
|
||||
Audible: number;
|
||||
Position: Vector3;
|
||||
Message: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.ChatData['FromName'].length + 1 + this.ChatData['Message'].length + 2) + 47;
|
||||
}
|
||||
|
||||
}
|
||||
28
lib/classes/packets/ChatFromViewer.ts
Normal file
28
lib/classes/packets/ChatFromViewer.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ChatFromViewerPacket implements Packet
|
||||
{
|
||||
name = 'ChatFromViewer';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901840;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
ChatData: {
|
||||
Message: string;
|
||||
Type: number;
|
||||
Channel: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.ChatData['Message'].length + 2) + 37;
|
||||
}
|
||||
|
||||
}
|
||||
32
lib/classes/packets/ChatPass.ts
Normal file
32
lib/classes/packets/ChatPass.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ChatPassPacket implements Packet
|
||||
{
|
||||
name = 'ChatPass';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901999;
|
||||
|
||||
ChatData: {
|
||||
Channel: number;
|
||||
Position: Vector3;
|
||||
ID: UUID;
|
||||
OwnerID: UUID;
|
||||
Name: string;
|
||||
SourceType: number;
|
||||
Type: number;
|
||||
Radius: number;
|
||||
SimAccess: number;
|
||||
Message: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.ChatData['Name'].length + 1 + this.ChatData['Message'].length + 2) + 55;
|
||||
}
|
||||
|
||||
}
|
||||
22
lib/classes/packets/CheckParcelAuctions.ts
Normal file
22
lib/classes/packets/CheckParcelAuctions.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CheckParcelAuctionsPacket implements Packet
|
||||
{
|
||||
name = 'CheckParcelAuctions';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901993;
|
||||
|
||||
RegionData: {
|
||||
RegionHandle: Long;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((8) * this.RegionData.length) + 1;
|
||||
}
|
||||
|
||||
}
|
||||
22
lib/classes/packets/CheckParcelSales.ts
Normal file
22
lib/classes/packets/CheckParcelSales.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CheckParcelSalesPacket implements Packet
|
||||
{
|
||||
name = 'CheckParcelSales';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901985;
|
||||
|
||||
RegionData: {
|
||||
RegionHandle: Long;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((8) * this.RegionData.length) + 1;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/ChildAgentAlive.ts
Normal file
26
lib/classes/packets/ChildAgentAlive.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ChildAgentAlivePacket implements Packet
|
||||
{
|
||||
name = 'ChildAgentAlive';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyHigh;
|
||||
id = 26;
|
||||
|
||||
AgentData: {
|
||||
RegionHandle: Long;
|
||||
ViewerCircuitCode: number;
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 44;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/ChildAgentDying.ts
Normal file
23
lib/classes/packets/ChildAgentDying.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ChildAgentDyingPacket implements Packet
|
||||
{
|
||||
name = 'ChildAgentDying';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294902000;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 32;
|
||||
}
|
||||
|
||||
}
|
||||
35
lib/classes/packets/ChildAgentPositionUpdate.ts
Normal file
35
lib/classes/packets/ChildAgentPositionUpdate.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ChildAgentPositionUpdatePacket implements Packet
|
||||
{
|
||||
name = 'ChildAgentPositionUpdate';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyHigh;
|
||||
id = 27;
|
||||
|
||||
AgentData: {
|
||||
RegionHandle: Long;
|
||||
ViewerCircuitCode: number;
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
AgentPos: Vector3;
|
||||
AgentVel: Vector3;
|
||||
Center: Vector3;
|
||||
Size: Vector3;
|
||||
AtAxis: Vector3;
|
||||
LeftAxis: Vector3;
|
||||
UpAxis: Vector3;
|
||||
ChangedGrid: boolean;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 129;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/ChildAgentUnknown.ts
Normal file
23
lib/classes/packets/ChildAgentUnknown.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ChildAgentUnknownPacket implements Packet
|
||||
{
|
||||
name = 'ChildAgentUnknown';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294902001;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 32;
|
||||
}
|
||||
|
||||
}
|
||||
88
lib/classes/packets/ChildAgentUpdate.ts
Normal file
88
lib/classes/packets/ChildAgentUpdate.ts
Normal file
@@ -0,0 +1,88 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import Long = require('long');
|
||||
import {Quaternion} from '../Quaternion';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ChildAgentUpdatePacket implements Packet
|
||||
{
|
||||
name = 'ChildAgentUpdate';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyHigh;
|
||||
id = 25;
|
||||
|
||||
AgentData: {
|
||||
RegionHandle: Long;
|
||||
ViewerCircuitCode: number;
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
AgentPos: Vector3;
|
||||
AgentVel: Vector3;
|
||||
Center: Vector3;
|
||||
Size: Vector3;
|
||||
AtAxis: Vector3;
|
||||
LeftAxis: Vector3;
|
||||
UpAxis: Vector3;
|
||||
ChangedGrid: boolean;
|
||||
Far: number;
|
||||
Aspect: number;
|
||||
Throttles: string;
|
||||
LocomotionState: number;
|
||||
HeadRotation: Quaternion;
|
||||
BodyRotation: Quaternion;
|
||||
ControlFlags: number;
|
||||
EnergyLevel: number;
|
||||
GodLevel: number;
|
||||
AlwaysRun: boolean;
|
||||
PreyAgent: UUID;
|
||||
AgentAccess: number;
|
||||
AgentTextures: string;
|
||||
ActiveGroupID: UUID;
|
||||
};
|
||||
GroupData: {
|
||||
GroupID: UUID;
|
||||
GroupPowers: Long;
|
||||
AcceptNotices: boolean;
|
||||
}[];
|
||||
AnimationData: {
|
||||
Animation: UUID;
|
||||
ObjectID: UUID;
|
||||
}[];
|
||||
GranterBlock: {
|
||||
GranterID: UUID;
|
||||
}[];
|
||||
NVPairData: {
|
||||
NVPairs: string;
|
||||
}[];
|
||||
VisualParam: {
|
||||
ParamValue: number;
|
||||
}[];
|
||||
AgentAccess: {
|
||||
AgentLegacyAccess: number;
|
||||
AgentMaxAccess: number;
|
||||
}[];
|
||||
AgentInfo: {
|
||||
Flags: number;
|
||||
}[];
|
||||
AgentInventoryHost: {
|
||||
InventoryHost: string;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.AgentData['Throttles'].length + 1 + this.AgentData['AgentTextures'].length + 2) + ((25) * this.GroupData.length) + ((32) * this.AnimationData.length) + ((16) * this.GranterBlock.length) + ((this.calculateVarVarSize(this.NVPairData, 'NVPairs', 2)) * this.NVPairData.length) + ((1) * this.VisualParam.length) + ((2) * this.AgentAccess.length) + ((4) * this.AgentInfo.length) + ((this.calculateVarVarSize(this.AgentInventoryHost, 'InventoryHost', 1)) * this.AgentInventoryHost.length) + 216;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/ClassifiedDelete.ts
Normal file
26
lib/classes/packets/ClassifiedDelete.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ClassifiedDeletePacket implements Packet
|
||||
{
|
||||
name = 'ClassifiedDelete';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901806;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
Data: {
|
||||
ClassifiedID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 48;
|
||||
}
|
||||
|
||||
}
|
||||
27
lib/classes/packets/ClassifiedGodDelete.ts
Normal file
27
lib/classes/packets/ClassifiedGodDelete.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ClassifiedGodDeletePacket implements Packet
|
||||
{
|
||||
name = 'ClassifiedGodDelete';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901807;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
Data: {
|
||||
ClassifiedID: UUID;
|
||||
QueryID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 64;
|
||||
}
|
||||
|
||||
}
|
||||
40
lib/classes/packets/ClassifiedInfoReply.ts
Normal file
40
lib/classes/packets/ClassifiedInfoReply.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ClassifiedInfoReplyPacket implements Packet
|
||||
{
|
||||
name = 'ClassifiedInfoReply';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901804;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
};
|
||||
Data: {
|
||||
ClassifiedID: UUID;
|
||||
CreatorID: UUID;
|
||||
CreationDate: number;
|
||||
ExpirationDate: number;
|
||||
Category: number;
|
||||
Name: string;
|
||||
Desc: string;
|
||||
ParcelID: UUID;
|
||||
ParentEstate: number;
|
||||
SnapshotID: UUID;
|
||||
SimName: string;
|
||||
PosGlobal: Vector3;
|
||||
ParcelName: string;
|
||||
ClassifiedFlags: number;
|
||||
PriceForListing: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.Data['Name'].length + 1 + this.Data['Desc'].length + 2 + this.Data['SimName'].length + 1 + this.Data['ParcelName'].length + 1) + 125;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/ClassifiedInfoRequest.ts
Normal file
26
lib/classes/packets/ClassifiedInfoRequest.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ClassifiedInfoRequestPacket implements Packet
|
||||
{
|
||||
name = 'ClassifiedInfoRequest';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901803;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
Data: {
|
||||
ClassifiedID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 48;
|
||||
}
|
||||
|
||||
}
|
||||
36
lib/classes/packets/ClassifiedInfoUpdate.ts
Normal file
36
lib/classes/packets/ClassifiedInfoUpdate.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ClassifiedInfoUpdatePacket implements Packet
|
||||
{
|
||||
name = 'ClassifiedInfoUpdate';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294901805;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
Data: {
|
||||
ClassifiedID: UUID;
|
||||
Category: number;
|
||||
Name: string;
|
||||
Desc: string;
|
||||
ParcelID: UUID;
|
||||
ParentEstate: number;
|
||||
SnapshotID: UUID;
|
||||
PosGlobal: Vector3;
|
||||
ClassifiedFlags: number;
|
||||
PriceForListing: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.Data['Name'].length + 1 + this.Data['Desc'].length + 2) + 117;
|
||||
}
|
||||
|
||||
}
|
||||
22
lib/classes/packets/ClearFollowCamProperties.ts
Normal file
22
lib/classes/packets/ClearFollowCamProperties.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ClearFollowCamPropertiesPacket implements Packet
|
||||
{
|
||||
name = 'ClearFollowCamProperties';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901920;
|
||||
|
||||
ObjectData: {
|
||||
ObjectID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 16;
|
||||
}
|
||||
|
||||
}
|
||||
18
lib/classes/packets/CloseCircuit.ts
Normal file
18
lib/classes/packets/CloseCircuit.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CloseCircuitPacket implements Packet
|
||||
{
|
||||
name = 'CloseCircuit';
|
||||
flags = MessageFlags.FrequencyFixed;
|
||||
id = 4294967293;
|
||||
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
31
lib/classes/packets/CoarseLocationUpdate.ts
Normal file
31
lib/classes/packets/CoarseLocationUpdate.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CoarseLocationUpdatePacket implements Packet
|
||||
{
|
||||
name = 'CoarseLocationUpdate';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyMedium;
|
||||
id = 65286;
|
||||
|
||||
Location: {
|
||||
X: number;
|
||||
Y: number;
|
||||
Z: number;
|
||||
}[];
|
||||
Index: {
|
||||
You: number;
|
||||
Prey: number;
|
||||
};
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((3) * this.Location.length) + ((16) * this.AgentData.length) + 6;
|
||||
}
|
||||
|
||||
}
|
||||
24
lib/classes/packets/CompleteAgentMovement.ts
Normal file
24
lib/classes/packets/CompleteAgentMovement.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CompleteAgentMovementPacket implements Packet
|
||||
{
|
||||
name = 'CompleteAgentMovement';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902009;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
CircuitCode: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 36;
|
||||
}
|
||||
|
||||
}
|
||||
22
lib/classes/packets/CompleteAuction.ts
Normal file
22
lib/classes/packets/CompleteAuction.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CompleteAuctionPacket implements Packet
|
||||
{
|
||||
name = 'CompleteAuction';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901991;
|
||||
|
||||
ParcelData: {
|
||||
ParcelID: UUID;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((16) * this.ParcelData.length) + 1;
|
||||
}
|
||||
|
||||
}
|
||||
21
lib/classes/packets/CompletePingCheck.ts
Normal file
21
lib/classes/packets/CompletePingCheck.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CompletePingCheckPacket implements Packet
|
||||
{
|
||||
name = 'CompletePingCheck';
|
||||
flags = MessageFlags.FrequencyHigh;
|
||||
id = 2;
|
||||
|
||||
PingID: {
|
||||
PingID: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/ConfirmAuctionStart.ts
Normal file
23
lib/classes/packets/ConfirmAuctionStart.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ConfirmAuctionStartPacket implements Packet
|
||||
{
|
||||
name = 'ConfirmAuctionStart';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901990;
|
||||
|
||||
AuctionData: {
|
||||
ParcelID: UUID;
|
||||
AuctionID: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/ConfirmEnableSimulator.ts
Normal file
23
lib/classes/packets/ConfirmEnableSimulator.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ConfirmEnableSimulatorPacket implements Packet
|
||||
{
|
||||
name = 'ConfirmEnableSimulator';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyMedium;
|
||||
id = 65288;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 32;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/ConfirmXferPacket.ts
Normal file
23
lib/classes/packets/ConfirmXferPacket.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class ConfirmXferPacketPacket implements Packet
|
||||
{
|
||||
name = 'ConfirmXferPacket';
|
||||
flags = MessageFlags.FrequencyHigh;
|
||||
id = 19;
|
||||
|
||||
XferID: {
|
||||
ID: Long;
|
||||
Packet: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 12;
|
||||
}
|
||||
|
||||
}
|
||||
31
lib/classes/packets/CopyInventoryFromNotecard.ts
Normal file
31
lib/classes/packets/CopyInventoryFromNotecard.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CopyInventoryFromNotecardPacket implements Packet
|
||||
{
|
||||
name = 'CopyInventoryFromNotecard';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.Deprecated | MessageFlags.FrequencyLow;
|
||||
id = 4294902025;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
NotecardData: {
|
||||
NotecardItemID: UUID;
|
||||
ObjectID: UUID;
|
||||
};
|
||||
InventoryData: {
|
||||
ItemID: UUID;
|
||||
FolderID: UUID;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((32) * this.InventoryData.length) + 65;
|
||||
}
|
||||
|
||||
}
|
||||
40
lib/classes/packets/CopyInventoryItem.ts
Normal file
40
lib/classes/packets/CopyInventoryItem.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CopyInventoryItemPacket implements Packet
|
||||
{
|
||||
name = 'CopyInventoryItem';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294902029;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
InventoryData: {
|
||||
CallbackID: number;
|
||||
OldAgentID: UUID;
|
||||
OldItemID: UUID;
|
||||
NewFolderID: UUID;
|
||||
NewName: string;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((this.calculateVarVarSize(this.InventoryData, 'NewName', 1) + 52) * this.InventoryData.length) + 33;
|
||||
}
|
||||
|
||||
calculateVarVarSize(block: object[], paramName: string, extraPerVar: number): number
|
||||
{
|
||||
let size = 0;
|
||||
block.forEach((bl: any) =>
|
||||
{
|
||||
size += bl[paramName].length + extraPerVar;
|
||||
});
|
||||
return size;
|
||||
}
|
||||
|
||||
}
|
||||
27
lib/classes/packets/CreateGroupReply.ts
Normal file
27
lib/classes/packets/CreateGroupReply.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CreateGroupReplyPacket implements Packet
|
||||
{
|
||||
name = 'CreateGroupReply';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294902100;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
};
|
||||
ReplyData: {
|
||||
GroupID: UUID;
|
||||
Success: boolean;
|
||||
Message: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.ReplyData['Message'].length + 1) + 33;
|
||||
}
|
||||
|
||||
}
|
||||
33
lib/classes/packets/CreateGroupRequest.ts
Normal file
33
lib/classes/packets/CreateGroupRequest.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CreateGroupRequestPacket implements Packet
|
||||
{
|
||||
name = 'CreateGroupRequest';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294902099;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
GroupData: {
|
||||
Name: string;
|
||||
Charter: string;
|
||||
ShowInList: boolean;
|
||||
InsigniaID: UUID;
|
||||
MembershipFee: number;
|
||||
OpenEnrollment: boolean;
|
||||
AllowPublish: boolean;
|
||||
MaturePublish: boolean;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.GroupData['Name'].length + 1 + this.GroupData['Charter'].length + 2) + 56;
|
||||
}
|
||||
|
||||
}
|
||||
34
lib/classes/packets/CreateGroupRequestExtended.ts
Normal file
34
lib/classes/packets/CreateGroupRequestExtended.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CreateGroupRequestExtendedPacket implements Packet
|
||||
{
|
||||
name = 'CreateGroupRequestExtended';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294902189;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
GroupLimit: number;
|
||||
};
|
||||
GroupData: {
|
||||
Name: string;
|
||||
Charter: string;
|
||||
ShowInList: boolean;
|
||||
InsigniaID: UUID;
|
||||
MembershipFee: number;
|
||||
OpenEnrollment: boolean;
|
||||
AllowPublish: boolean;
|
||||
MaturePublish: boolean;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.GroupData['Name'].length + 1 + this.GroupData['Charter'].length + 2) + 60;
|
||||
}
|
||||
|
||||
}
|
||||
29
lib/classes/packets/CreateInventoryFolder.ts
Normal file
29
lib/classes/packets/CreateInventoryFolder.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CreateInventoryFolderPacket implements Packet
|
||||
{
|
||||
name = 'CreateInventoryFolder';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902033;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
FolderData: {
|
||||
FolderID: UUID;
|
||||
ParentID: UUID;
|
||||
Type: number;
|
||||
Name: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.FolderData['Name'].length + 1) + 65;
|
||||
}
|
||||
|
||||
}
|
||||
34
lib/classes/packets/CreateInventoryItem.ts
Normal file
34
lib/classes/packets/CreateInventoryItem.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CreateInventoryItemPacket implements Packet
|
||||
{
|
||||
name = 'CreateInventoryItem';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294902065;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
InventoryBlock: {
|
||||
CallbackID: number;
|
||||
FolderID: UUID;
|
||||
TransactionID: UUID;
|
||||
NextOwnerMask: number;
|
||||
Type: number;
|
||||
InvType: number;
|
||||
WearableType: number;
|
||||
Name: string;
|
||||
Description: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.InventoryBlock['Name'].length + 1 + this.InventoryBlock['Description'].length + 1) + 75;
|
||||
}
|
||||
|
||||
}
|
||||
30
lib/classes/packets/CreateLandmarkForEvent.ts
Normal file
30
lib/classes/packets/CreateLandmarkForEvent.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CreateLandmarkForEventPacket implements Packet
|
||||
{
|
||||
name = 'CreateLandmarkForEvent';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294902066;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
EventData: {
|
||||
EventID: number;
|
||||
};
|
||||
InventoryBlock: {
|
||||
FolderID: UUID;
|
||||
Name: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.InventoryBlock['Name'].length + 1) + 52;
|
||||
}
|
||||
|
||||
}
|
||||
30
lib/classes/packets/CreateNewOutfitAttachments.ts
Normal file
30
lib/classes/packets/CreateNewOutfitAttachments.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CreateNewOutfitAttachmentsPacket implements Packet
|
||||
{
|
||||
name = 'CreateNewOutfitAttachments';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902158;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
HeaderData: {
|
||||
NewFolderID: UUID;
|
||||
};
|
||||
ObjectData: {
|
||||
OldItemID: UUID;
|
||||
OldFolderID: UUID;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((32) * this.ObjectData.length) + 49;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/CreateTrustedCircuit.ts
Normal file
23
lib/classes/packets/CreateTrustedCircuit.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CreateTrustedCircuitPacket implements Packet
|
||||
{
|
||||
name = 'CreateTrustedCircuit';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902152;
|
||||
|
||||
DataBlock: {
|
||||
EndPointID: UUID;
|
||||
Digest: Buffer;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 48;
|
||||
}
|
||||
|
||||
}
|
||||
36
lib/classes/packets/CrossedRegion.ts
Normal file
36
lib/classes/packets/CrossedRegion.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {IPAddress} from '../IPAddress';
|
||||
import {Vector3} from '../Vector3';
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class CrossedRegionPacket implements Packet
|
||||
{
|
||||
name = 'CrossedRegion';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Blacklisted | MessageFlags.FrequencyMedium;
|
||||
id = 65287;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
RegionData: {
|
||||
SimIP: IPAddress;
|
||||
SimPort: number;
|
||||
RegionHandle: Long;
|
||||
SeedCapability: string;
|
||||
};
|
||||
Info: {
|
||||
Position: Vector3;
|
||||
LookAt: Vector3;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.RegionData['SeedCapability'].length + 2) + 70;
|
||||
}
|
||||
|
||||
}
|
||||
27
lib/classes/packets/DataHomeLocationReply.ts
Normal file
27
lib/classes/packets/DataHomeLocationReply.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {Vector3} from '../Vector3';
|
||||
import Long = require('long');
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class DataHomeLocationReplyPacket implements Packet
|
||||
{
|
||||
name = 'DataHomeLocationReply';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901828;
|
||||
|
||||
Info: {
|
||||
AgentID: UUID;
|
||||
RegionHandle: Long;
|
||||
Position: Vector3;
|
||||
LookAt: Vector3;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 48;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/DataHomeLocationRequest.ts
Normal file
26
lib/classes/packets/DataHomeLocationRequest.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class DataHomeLocationRequestPacket implements Packet
|
||||
{
|
||||
name = 'DataHomeLocationRequest';
|
||||
flags = MessageFlags.Trusted | MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294901827;
|
||||
|
||||
Info: {
|
||||
AgentID: UUID;
|
||||
KickedFromEstateID: number;
|
||||
};
|
||||
AgentInfo: {
|
||||
AgentEffectiveMaturity: number;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 24;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/DataServerLogout.ts
Normal file
26
lib/classes/packets/DataServerLogout.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {IPAddress} from '../IPAddress';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class DataServerLogoutPacket implements Packet
|
||||
{
|
||||
name = 'DataServerLogout';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294902011;
|
||||
|
||||
UserData: {
|
||||
AgentID: UUID;
|
||||
ViewerIP: IPAddress;
|
||||
Disconnect: boolean;
|
||||
SessionID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 37;
|
||||
}
|
||||
|
||||
}
|
||||
23
lib/classes/packets/DeRezAck.ts
Normal file
23
lib/classes/packets/DeRezAck.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class DeRezAckPacket implements Packet
|
||||
{
|
||||
name = 'DeRezAck';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294902052;
|
||||
|
||||
TransactionData: {
|
||||
TransactionID: UUID;
|
||||
Success: boolean;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 17;
|
||||
}
|
||||
|
||||
}
|
||||
34
lib/classes/packets/DeRezObject.ts
Normal file
34
lib/classes/packets/DeRezObject.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class DeRezObjectPacket implements Packet
|
||||
{
|
||||
name = 'DeRezObject';
|
||||
flags = MessageFlags.Zerocoded | MessageFlags.FrequencyLow;
|
||||
id = 4294902051;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
AgentBlock: {
|
||||
GroupID: UUID;
|
||||
Destination: number;
|
||||
DestinationID: UUID;
|
||||
TransactionID: UUID;
|
||||
PacketCount: number;
|
||||
PacketNumber: number;
|
||||
};
|
||||
ObjectData: {
|
||||
ObjectLocalID: number;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((4) * this.ObjectData.length) + 84;
|
||||
}
|
||||
|
||||
}
|
||||
28
lib/classes/packets/DeactivateGestures.ts
Normal file
28
lib/classes/packets/DeactivateGestures.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class DeactivateGesturesPacket implements Packet
|
||||
{
|
||||
name = 'DeactivateGestures';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902077;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
Flags: number;
|
||||
};
|
||||
Data: {
|
||||
ItemID: UUID;
|
||||
GestureFlags: number;
|
||||
}[];
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return ((20) * this.Data.length) + 37;
|
||||
}
|
||||
|
||||
}
|
||||
26
lib/classes/packets/DeclineCallingCard.ts
Normal file
26
lib/classes/packets/DeclineCallingCard.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class DeclineCallingCardPacket implements Packet
|
||||
{
|
||||
name = 'DeclineCallingCard';
|
||||
flags = MessageFlags.FrequencyLow;
|
||||
id = 4294902063;
|
||||
|
||||
AgentData: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
};
|
||||
TransactionBlock: {
|
||||
TransactionID: UUID;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return 48;
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user