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

            ContainsRenderCommands   = false;
            ContainsResponseHandlers = false;
        }
        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;
        }
Exemple #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);
        }
Exemple #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;
            }
        }
Exemple #8
0
 public RSDownloadHandlerRender(RSService service, UnityWebRequest request)
 {
     this.service = service;
     this.bytes   = new List <byte>();
     this.request = request;
 }
Exemple #9
0
 public RSScene(RSService service)
 {
     Service = service;
     Ready   = false;
 }
Exemple #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;
     }
 }
Exemple #11
0
 public RSScene(RSService service)
 {
     Service = service;
     Ready = false;
 }