You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
🆙 added latest changes
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": [ "@nitrots/eslint-config" ]
|
||||
}
|
||||
@@ -5,8 +5,7 @@
|
||||
"type": "module",
|
||||
"license": "GPL-3.0",
|
||||
"scripts": {
|
||||
"compile": "tsc --project ./tsconfig.json --noEmit false",
|
||||
"eslint": "eslint ./src --fix"
|
||||
"compile": "tsc --project ./tsconfig.json --noEmit false"
|
||||
},
|
||||
"main": "./index",
|
||||
"dependencies": {
|
||||
@@ -14,10 +13,9 @@
|
||||
"@nitrots/assets": "1.0.0",
|
||||
"@nitrots/communication": "1.0.0",
|
||||
"@nitrots/configuration": "1.0.0",
|
||||
"@nitrots/eslint-config": "1.0.0",
|
||||
"@nitrots/events": "1.0.0",
|
||||
"@nitrots/localization": "1.0.0",
|
||||
"pixi.js": "^8.1.0"
|
||||
"pixi.js": "^8.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "~5.4.2"
|
||||
|
||||
@@ -50,8 +50,6 @@ export class SessionDataManager implements ISessionDataManager
|
||||
constructor()
|
||||
{
|
||||
this.resetUserInfo();
|
||||
|
||||
this.onNitroSettingsEvent = this.onNitroSettingsEvent.bind(this);
|
||||
}
|
||||
|
||||
public async init(): Promise<void>
|
||||
@@ -86,7 +84,13 @@ export class SessionDataManager implements ISessionDataManager
|
||||
GetCommunication().registerMessageEvent(new AccountSafetyLockStatusChangeMessageEvent(this.onAccountSafetyLockStatusChangeMessageEvent.bind(this)));
|
||||
GetCommunication().registerMessageEvent(new EmailStatusResultEvent(this.onEmailStatus.bind(this)));
|
||||
|
||||
GetEventDispatcher().addEventListener(NitroSettingsEvent.SETTINGS_UPDATED, this.onNitroSettingsEvent);
|
||||
GetEventDispatcher().addEventListener<NitroSettingsEvent>(NitroSettingsEvent.SETTINGS_UPDATED, event =>
|
||||
{
|
||||
this._isRoomCameraFollowDisabled = event.cameraFollow;
|
||||
this._uiFlags = event.flags;
|
||||
|
||||
GetEventDispatcher().dispatchEvent(new SessionDataPreferencesEvent(this._uiFlags));
|
||||
});
|
||||
}
|
||||
|
||||
private resetUserInfo(): void
|
||||
@@ -256,14 +260,6 @@ export class SessionDataManager implements ISessionDataManager
|
||||
this._isEmailVerified = event?.getParser()?.isVerified ?? false;
|
||||
}
|
||||
|
||||
private onNitroSettingsEvent(event: NitroSettingsEvent): void
|
||||
{
|
||||
this._isRoomCameraFollowDisabled = event.cameraFollow;
|
||||
this._uiFlags = event.flags;
|
||||
|
||||
GetEventDispatcher().dispatchEvent(new SessionDataPreferencesEvent(this._uiFlags));
|
||||
}
|
||||
|
||||
public getFloorItemData(id: number): IFurnitureData
|
||||
{
|
||||
const existing = this._floorItems.get(id);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { IFurnitureData } from '@nitrots/api';
|
||||
import { FurnitureType, IFurnitureData } from '@nitrots/api';
|
||||
|
||||
export class FurnitureData implements IFurnitureData
|
||||
{
|
||||
private _type: string;
|
||||
private _type: FurnitureType;
|
||||
private _id: number;
|
||||
private _className: string;
|
||||
private _fullName: string;
|
||||
@@ -32,7 +32,7 @@ export class FurnitureData implements IFurnitureData
|
||||
private _environment: string;
|
||||
private _rare: boolean;
|
||||
|
||||
constructor(type: string, id: number, fullName: string, className: string, category: string, localizedName: string, description: string, revision: number, tileSizeX: number, tileSizeY: number, tileSizeZ: number, colors: number[], hadIndexedColor: boolean, colorIndex: number, adUrl: string, purchaseOfferId: number, purchaseCouldBeUsedForBuyout: boolean, rentOfferId: number, rentCouldBeUsedForBuyout: boolean, availableForBuildersClub: boolean, customParams: string, specialType: number, canStandOn: boolean, canSitOn: boolean, canLayOn: boolean, excludedfromDynamic: boolean, furniLine: string, environment: string, rare: boolean)
|
||||
constructor(type: FurnitureType, id: number, fullName: string, className: string, category: string, localizedName: string, description: string, revision: number, tileSizeX: number, tileSizeY: number, tileSizeZ: number, colors: number[], hadIndexedColor: boolean, colorIndex: number, adUrl: string, purchaseOfferId: number, purchaseCouldBeUsedForBuyout: boolean, rentOfferId: number, rentCouldBeUsedForBuyout: boolean, availableForBuildersClub: boolean, customParams: string, specialType: number, canStandOn: boolean, canSitOn: boolean, canLayOn: boolean, excludedfromDynamic: boolean, furniLine: string, environment: string, rare: boolean)
|
||||
{
|
||||
this._type = type;
|
||||
this._id = id;
|
||||
@@ -65,7 +65,7 @@ export class FurnitureData implements IFurnitureData
|
||||
this._rare = rare;
|
||||
}
|
||||
|
||||
public get type(): string
|
||||
public get type(): FurnitureType
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,5 @@
|
||||
"ESNext"
|
||||
],
|
||||
"module": "ES6"
|
||||
},
|
||||
"include": [
|
||||
"src" ]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user