mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-30 03:00:51 +01:00
Merge branch 'fix/worker-setter' into 'master'
Fix/worker setter See merge request nitro/nitro-renderer!1
This commit is contained in:
commit
9afbb9dba6
@ -27,6 +27,7 @@ export interface INitro extends Application
|
|||||||
addLinkEventTracker(tracker: ILinkEventTracker): void;
|
addLinkEventTracker(tracker: ILinkEventTracker): void;
|
||||||
removeLinkEventTracker(tracker: ILinkEventTracker): void;
|
removeLinkEventTracker(tracker: ILinkEventTracker): void;
|
||||||
createLinkEvent(link: string): void;
|
createLinkEvent(link: string): void;
|
||||||
|
setWorker(val: Worker): void;
|
||||||
nitroTimer: NitroTimer;
|
nitroTimer: NitroTimer;
|
||||||
core: INitroCore;
|
core: INitroCore;
|
||||||
events: IEventDispatcher;
|
events: IEventDispatcher;
|
||||||
|
@ -335,6 +335,12 @@ export class Nitro extends Application implements INitro
|
|||||||
HabboWebTools.sendHeartBeat();
|
HabboWebTools.sendHeartBeat();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public setWorker(val: Worker): void
|
||||||
|
{
|
||||||
|
this._worker = val;
|
||||||
|
this._worker.onmessage = this.createWorkerEvent.bind(this);
|
||||||
|
}
|
||||||
|
|
||||||
public get nitroTimer(): NitroTimer
|
public get nitroTimer(): NitroTimer
|
||||||
{
|
{
|
||||||
return this._nitroTimer;
|
return this._nitroTimer;
|
||||||
|
Loading…
Reference in New Issue
Block a user