Ejemplo n.º 1
0
 public RSOutgoingCommand(RSService service, IRSCommand command, ResponseHandler callback = null, int commandId = -1)
 {
     Service = service;
     Command = command;
     Callback = callback;
     CommandId = commandId;
 }
Ejemplo n.º 2
0
 public RSOutgoingCommand(RSService service, IRSCommand command, ResponseHandler callback = null, int commandId = -1)
 {
     Service   = service;
     Command   = command;
     Callback  = callback;
     CommandId = commandId;
 }
Ejemplo n.º 3
0
        public RSCommandSequence(RSService service, RSStateData stateData = null)
        {
            Service   = service;
            StateData = stateData;

            ContainsRenderCommands   = false;
            ContainsResponseHandlers = false;
        }
Ejemplo n.º 4
0
        public RSCommandSequence(RSService service, RSStateData stateData = null)
        {
            Service = service;
            StateData = stateData;

            ContainsRenderCommands = false;
            ContainsResponseHandlers = false;
        }
        public bool OnLoad(RSRenderCommand command, RSService service, byte[] data)
        {
            // Updating the texture has to be done in the game loop and not from a different thread.
            lock (DataLock)
            {
                CurrentData = data;
                HasNewData = true;
            }

            return true;
        }
Ejemplo n.º 6
0
        protected void InitValues()
        {
            ReceivedFirstRender = false;

            string rand = RSUtils.RandomString();
            if (RenderLoopName == null || RenderLoopName.Length == 0)
            {
                RenderLoopName = "loop_" + rand;
            }
            
            KeepAliveService = new RSService(Scene.Host, Scene.Port);
        }
Ejemplo n.º 7
0
        /**
         * Sets up any values that are still null.
         */
        public void InitValues()
        {
            // Create a service if one wasn't given.
            if (Service == null)
            {
                Service = new RSService(Host, Port, Timeout);
            }

            // Default the scene name to be the same as the filename.
            if (Name == null)
            {
                Name = Filename;
            }

            // Create a user scope if one wasn't given.
            string rand = RSUtils.RandomString();

            if (UserScope == null || UserScope.Length == 0)
            {
                UserScope = "user_" + rand;
            }
        }
Ejemplo n.º 8
0
 public RSDownloadHandlerRender(RSService service, UnityWebRequest request)
 {
     this.service = service;
     this.bytes   = new List <byte>();
     this.request = request;
 }
Ejemplo n.º 9
0
 public RSScene(RSService service)
 {
     Service = service;
     Ready   = false;
 }
Ejemplo n.º 10
0
 /**
  * Sets up any values that are still null.
  */
 public void InitValues()
 {
     // Create a service if one wasn't given.
     if (Service == null)
     {
         Service = new RSService(Host, Port, Timeout);
     }
     
     // Default the scene name to be the same as the filename.
     if (Name == null)
     {
         Name = Filename;
     }
     
     // Create a user scope if one wasn't given.
     string rand = RSUtils.RandomString();
     if (UserScope == null || UserScope.Length == 0)
     {
         UserScope = "user_" + rand;
     }
 }
Ejemplo n.º 11
0
 public RSScene(RSService service)
 {
     Service = service;
     Ready = false;
 }