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

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