Packet descriptions
This commit is contained in:
25
lib/classes/packets/InternalScriptMail.ts
Normal file
25
lib/classes/packets/InternalScriptMail.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 InternalScriptMailPacket implements Packet
|
||||
{
|
||||
name = 'InternalScriptMail';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyMedium;
|
||||
id = 65296;
|
||||
|
||||
DataBlock: {
|
||||
From: string;
|
||||
To: UUID;
|
||||
Subject: string;
|
||||
Body: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.DataBlock['From'].length + 1 + this.DataBlock['Subject'].length + 1 + this.DataBlock['Body'].length + 2) + 16;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user