This commit is contained in:
Bill 2021-08-10 22:27:18 -04:00
parent 3ae4faf668
commit c9b34cc22f
6 changed files with 12 additions and 6 deletions

View File

@ -6,6 +6,7 @@ import { ICommunicationManager } from './communication/ICommunicationManager';
import { ConfigurationManager } from './configuration/ConfigurationManager';
import { IConfigurationManager } from './configuration/IConfigurationManager';
import { INitroCore } from './INitroCore';
import { NitroVersion } from './NitroVersion';
export class NitroCore extends Disposable implements INitroCore
{
@ -18,7 +19,7 @@ export class NitroCore extends Disposable implements INitroCore
super();
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;' ]);
this._configuration = new ConfigurationManager();

5
src/core/NitroVersion.ts Normal file
View File

@ -0,0 +1,5 @@
export class NitroVersion
{
public static RENDERER_VERSION: string = '1-1-0';
public static UI_VERSION: string = '';
}

View File

@ -5,4 +5,5 @@ export * from './configuration';
export * from './events';
export * from './INitroCore';
export * from './NitroCore';
export * from './NitroVersion';
export * from './utils';

View File

@ -45,7 +45,6 @@ export class Nitro extends Application implements INitro
{
public static WEBGL_CONTEXT_LOST: string = 'NE_WEBGL_CONTEXT_LOST';
public static WEBGL_UNAVAILABLE: string = 'NE_WEBGL_UNAVAILABLE';
public static RELEASE_VERSION: string = 'NITRO-2-0-0';
public static READY: string = 'NE_READY!';
private static INSTANCE: INitro = null;

View File

@ -1,7 +1,7 @@
import { NitroVersion } from '../../../../../core';
import { ClientDeviceCategoryEnum } from '../../../../../core/communication/connections/enums/ClientDeviceCategoryEnum';
import { ClientPlatformEnum } from '../../../../../core/communication/connections/enums/ClientPlatformEnum';
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
import { Nitro } from '../../../../Nitro';
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)
{
this._data = [ Nitro.RELEASE_VERSION, 'HTML5', ClientPlatformEnum.HTML5, ClientDeviceCategoryEnum.BROWSER ];
this._data = [ NitroVersion.RENDERER_VERSION, 'HTML5', ClientPlatformEnum.HTML5, ClientDeviceCategoryEnum.BROWSER ];
}
public getMessageArray()