mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-19 06:46:28 +01:00
Updates
This commit is contained in:
parent
3ae4faf668
commit
c9b34cc22f
@ -6,6 +6,7 @@ import { ICommunicationManager } from './communication/ICommunicationManager';
|
|||||||
import { ConfigurationManager } from './configuration/ConfigurationManager';
|
import { ConfigurationManager } from './configuration/ConfigurationManager';
|
||||||
import { IConfigurationManager } from './configuration/IConfigurationManager';
|
import { IConfigurationManager } from './configuration/IConfigurationManager';
|
||||||
import { INitroCore } from './INitroCore';
|
import { INitroCore } from './INitroCore';
|
||||||
|
import { NitroVersion } from './NitroVersion';
|
||||||
|
|
||||||
export class NitroCore extends Disposable implements INitroCore
|
export class NitroCore extends Disposable implements INitroCore
|
||||||
{
|
{
|
||||||
@ -18,7 +19,7 @@ export class NitroCore extends Disposable implements INitroCore
|
|||||||
super();
|
super();
|
||||||
|
|
||||||
window.console.log.apply(console, [
|
window.console.log.apply(console, [
|
||||||
'\n%c _ ___ __ \n / | / (_) /__________ \n / |/ / / __/ ___/ __ \\ \n / /| / / /_/ / / /_/ / \n /_/ |_/_/\\__/_/ \\____/ \n \n Thanks for using Nitro \n To report bugs or issues \n join us on Discord \n https://discord.gg/66UR68FPgy \n \n',
|
`\n%c _ ___ __ \n / | / (_) /__________ \n / |/ / / __/ ___/ __ \\ \n / /| / / /_/ / / /_/ / \n /_/ |_/_/\\__/_/ \\____/ \n \n Thanks for using Nitro \n To report bugs or issues \n join us on Discord \n https://nitrots.co/discord \n \n Renderer: v${ NitroVersion.RENDERER_VERSION } \n UI: v${ NitroVersion.UI_VERSION } \n \n`,
|
||||||
'color: #FFFFFF; background: #000000; padding:0px 0;' ]);
|
'color: #FFFFFF; background: #000000; padding:0px 0;' ]);
|
||||||
|
|
||||||
this._configuration = new ConfigurationManager();
|
this._configuration = new ConfigurationManager();
|
||||||
|
5
src/core/NitroVersion.ts
Normal file
5
src/core/NitroVersion.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export class NitroVersion
|
||||||
|
{
|
||||||
|
public static RENDERER_VERSION: string = '1-1-0';
|
||||||
|
public static UI_VERSION: string = '';
|
||||||
|
}
|
@ -5,4 +5,5 @@ export * from './configuration';
|
|||||||
export * from './events';
|
export * from './events';
|
||||||
export * from './INitroCore';
|
export * from './INitroCore';
|
||||||
export * from './NitroCore';
|
export * from './NitroCore';
|
||||||
|
export * from './NitroVersion';
|
||||||
export * from './utils';
|
export * from './utils';
|
||||||
|
@ -45,7 +45,6 @@ export class Nitro extends Application implements INitro
|
|||||||
{
|
{
|
||||||
public static WEBGL_CONTEXT_LOST: string = 'NE_WEBGL_CONTEXT_LOST';
|
public static WEBGL_CONTEXT_LOST: string = 'NE_WEBGL_CONTEXT_LOST';
|
||||||
public static WEBGL_UNAVAILABLE: string = 'NE_WEBGL_UNAVAILABLE';
|
public static WEBGL_UNAVAILABLE: string = 'NE_WEBGL_UNAVAILABLE';
|
||||||
public static RELEASE_VERSION: string = 'NITRO-2-0-0';
|
|
||||||
public static READY: string = 'NE_READY!';
|
public static READY: string = 'NE_READY!';
|
||||||
|
|
||||||
private static INSTANCE: INitro = null;
|
private static INSTANCE: INitro = null;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
import { NitroVersion } from '../../../../../core';
|
||||||
import { ClientDeviceCategoryEnum } from '../../../../../core/communication/connections/enums/ClientDeviceCategoryEnum';
|
import { ClientDeviceCategoryEnum } from '../../../../../core/communication/connections/enums/ClientDeviceCategoryEnum';
|
||||||
import { ClientPlatformEnum } from '../../../../../core/communication/connections/enums/ClientPlatformEnum';
|
import { ClientPlatformEnum } from '../../../../../core/communication/connections/enums/ClientPlatformEnum';
|
||||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
import { Nitro } from '../../../../Nitro';
|
|
||||||
|
|
||||||
export class ClientReleaseVersionComposer implements IMessageComposer<ConstructorParameters<typeof ClientReleaseVersionComposer>>
|
export class ClientReleaseVersionComposer implements IMessageComposer<ConstructorParameters<typeof ClientReleaseVersionComposer>>
|
||||||
{
|
{
|
||||||
@ -9,7 +9,7 @@ export class ClientReleaseVersionComposer implements IMessageComposer<Constructo
|
|||||||
|
|
||||||
constructor(releaseVersion: string, type: string, platform: number, category: number)
|
constructor(releaseVersion: string, type: string, platform: number, category: number)
|
||||||
{
|
{
|
||||||
this._data = [ Nitro.RELEASE_VERSION, 'HTML5', ClientPlatformEnum.HTML5, ClientDeviceCategoryEnum.BROWSER ];
|
this._data = [ NitroVersion.RENDERER_VERSION, 'HTML5', ClientPlatformEnum.HTML5, ClientDeviceCategoryEnum.BROWSER ];
|
||||||
}
|
}
|
||||||
|
|
||||||
public getMessageArray()
|
public getMessageArray()
|
||||||
|
Loading…
Reference in New Issue
Block a user