Updated the renderer V2

This commit is contained in:
duckietm
2024-04-25 11:35:50 +02:00
parent 95bc0045ec
commit d5a3a05c40
20 changed files with 166 additions and 250 deletions
@@ -39,7 +39,7 @@ export class CommunicationManager implements ICommunicationManager
}
private getCanvas(): any {
const e = document.createElement('canvas'), t = e.getContext('2d'), userAgent = navigator.userAgent, screenInfo = '${window.screen.width}x${window.screen.height}', currentDate = new Date().toString(), s = 'ThiosIsVerrySeCuRe02938883721##@@@_moreStuff! | ${userAgent} | ${screenInfo} | ${currentDate}';
const e = document.createElement('canvas'), t = e.getContext('2d'), userAgent = navigator.userAgent, screenInfo = '${window.screen.width}x${window.screen.height}', currentDate = new Date().toString(), s = 'ThiosIsVerrySeCuRe02938883721moreStuff! | ${userAgent} | ${screenInfo} | ${currentDate}';
t.textBaseline = 'top';
t.font = "16px 'Arial'";
t.textBaseline = 'alphabetic';
File diff suppressed because one or more lines are too long
@@ -468,4 +468,8 @@ export class OutgoingHeader
public static RENTABLE_EXTEND_RENT_OR_BUYOUT_STRIP_ITEM = 2115;
public static RENTABLE_EXTEND_RENT_OR_BUYOUT_FURNI = 1071;
public static RENTABLE_GET_RENT_OR_BUYOUT_OFFER = 2518;
// CUSTOM HEADERS
public static DELETE_ITEM = 10018;
}
@@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../../api';
export class DeleteItemMessageComposer implements IMessageComposer<ConstructorParameters<typeof DeleteItemMessageComposer>>
{
private _data: ConstructorParameters<typeof DeleteItemMessageComposer>;
constructor(itemId: number, amount: number)
{
this._data = [itemId, amount];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}
@@ -1,2 +1,3 @@
export * from './DeleteItemMessageComposer';
export * from './FurnitureListComposer';
export * from './RequestFurniInventoryWhenNotInRoomComposer';