Packet descriptions
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user