diff --git a/src/core/INitroCore.ts b/src/core/INitroCore.ts index a3f6da74..e9a068a9 100644 --- a/src/core/INitroCore.ts +++ b/src/core/INitroCore.ts @@ -8,4 +8,4 @@ export interface INitroCore extends IDisposable configuration: IConfigurationManager; asset: IAssetManager; communication: ICommunicationManager; -} \ No newline at end of file +} diff --git a/src/core/NitroCore.ts b/src/core/NitroCore.ts index d7a44636..6ce46098 100644 --- a/src/core/NitroCore.ts +++ b/src/core/NitroCore.ts @@ -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(); @@ -57,4 +58,4 @@ export class NitroCore extends Disposable implements INitroCore { return this._asset; } -} \ No newline at end of file +} diff --git a/src/core/NitroVersion.ts b/src/core/NitroVersion.ts new file mode 100644 index 00000000..103efc59 --- /dev/null +++ b/src/core/NitroVersion.ts @@ -0,0 +1,5 @@ +export class NitroVersion +{ + public static RENDERER_VERSION: string = '1-1-0'; + public static UI_VERSION: string = ''; +} diff --git a/src/core/index.ts b/src/core/index.ts index 3fbcc8d6..75b6fdae 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -5,4 +5,5 @@ export * from './configuration'; export * from './events'; export * from './INitroCore'; export * from './NitroCore'; +export * from './NitroVersion'; export * from './utils'; diff --git a/src/nitro/Nitro.ts b/src/nitro/Nitro.ts index 7ad626be..5b1af390 100644 --- a/src/nitro/Nitro.ts +++ b/src/nitro/Nitro.ts @@ -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; diff --git a/src/nitro/communication/messages/outgoing/client/ClientReleaseVersionComposer.ts b/src/nitro/communication/messages/outgoing/client/ClientReleaseVersionComposer.ts index 876b9788..af2d8a33 100644 --- a/src/nitro/communication/messages/outgoing/client/ClientReleaseVersionComposer.ts +++ b/src/nitro/communication/messages/outgoing/client/ClientReleaseVersionComposer.ts @@ -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> { @@ -9,7 +9,7 @@ export class ClientReleaseVersionComposer implements IMessageComposer