GlobalLiquidity

Untitled

Apr 6th, 2019
225
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export interface IScene
  2. {
  3.     title: string;
  4.     canvas : HTMLElement;
  5.     bjsScene : bjs.Scene;
  6.     camera : bjs.Camera;
  7.     light : bjs.PointLight;
  8.     sceneElements : Array<ISceneElement>;
  9.  
  10.     preRender();
  11.     render();
  12. }
  13.  
  14. export interface ISceneElement
  15. {
  16.     scene : IScene;
  17.     sceneElements : Array<ISceneElement>;
  18.  
  19.     addChild(element : ISceneElement);
  20.     preRender();
  21.     render();
  22. }
  23.  
  24. export interface IMessageBusMessage
  25. {
  26.     topic: string;
  27.     message: string;
  28. }
  29.  
  30. export interface IMessageBus
  31. {
  32.     link:IMessageBusLink;
  33.  
  34.     connect(apikey : string, clientId: string);
  35.     disconnect();
  36.     joinChannel(channelName : string)
  37.     sendMessage(topic: string, message: string);
  38. }
  39.  
  40. export interface IMessageBusLink    
  41. {
  42.     connect(apikey : string, clientId: string);
  43.     disconnect();
  44.     scene:IScene
  45.     processEvent(eventName:string, eventData:string);
  46. }
RAW Paste Data