Deploy website - based on 23574c8e18

This commit is contained in:
technobaboo
2021-07-22 08:57:56 -05:00
parent f83287559b
commit 7a239dfc74
30 changed files with 55 additions and 55 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
(self.webpackChunkstardust_website=self.webpackChunkstardust_website||[]).push([[342],{3905:function(e,t,n){"use strict";n.d(t,{Zo:function(){return u},kt:function(){return m}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),c=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),d=c(n),m=o,b=d["".concat(l,".").concat(m)]||d[m]||p[m]||i;return n?r.createElement(b,a(a({ref:t},u),{},{components:n})):r.createElement(b,a({ref:t},u))}));function m(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=d;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s.mdxType="string"==typeof e?e:o,a[1]=s;for(var c=2;c<i;c++)a[c]=n[c];return r.createElement.apply(null,a)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},3960:function(e,t,n){"use strict";n.r(t),n.d(t,{frontMatter:function(){return s},contentTitle:function(){return l},metadata:function(){return c},toc:function(){return u},default:function(){return d}});var r=n(2122),o=n(9756),i=(n(7294),n(3905)),a=["components"],s={},l="/environment",c={unversionedId:"stardust-protocol/server/objects/environment",id:"stardust-protocol/server/objects/environment",isDocsHomePage:!1,title:"/environment",description:"Interface managing the skytex and skylight (equivalent of desktop background).",source:"@site/docs/stardust-protocol/server/objects/environment.md",sourceDirName:"stardust-protocol/server/objects",slug:"/stardust-protocol/server/objects/environment",permalink:"/docs/stardust-protocol/server/objects/environment",editUrl:"https://github.com/StardustXR/website/edit/main/docs/stardust-protocol/server/objects/environment.md",version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"PointerInput",permalink:"/docs/stardust-protocol/server/types/input/inputtypes/PointerInput"},next:{title:"/field",permalink:"/docs/stardust-protocol/server/objects/field"}},u=[{value:"Signals",id:"signals",children:[{value:"<code>visible(bool enable)</code>",id:"visiblebool-enable",children:[]},{value:"<code>setSkytex(string path)</code>",id:"setskytexstring-path",children:[]},{value:"<code>setLighting(string path)</code>",id:"setlightingstring-path",children:[]}]}],p={toc:u};function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,r.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"environment"},"/environment"),(0,i.kt)("p",null,"Interface managing the skytex and skylight (equivalent of desktop background)."),(0,i.kt)("h2",{id:"signals"},"Signals"),(0,i.kt)("h3",{id:"visiblebool-enable"},(0,i.kt)("inlineCode",{parentName:"h3"},"visible(bool enable)")),(0,i.kt)("p",null,"Enable or disables the skybox visibility (lighting remains active). This is not meant to be used for an additive AR mode as StereoKit will perform that when the OpenXR runtime indicates the layer's blend mode is additive."),(0,i.kt)("h3",{id:"setskytexstring-path"},(0,i.kt)("inlineCode",{parentName:"h3"},"setSkytex(string path)")),(0,i.kt)("p",null,"Sets the sky texture to be the image (HDR) at the absolute ",(0,i.kt)("inlineCode",{parentName:"p"},"path"),"."),(0,i.kt)("h3",{id:"setlightingstring-path"},(0,i.kt)("inlineCode",{parentName:"h3"},"setLighting(string path)")),(0,i.kt)("p",null,"Sets the ambient lighting (using spherical harmonics) to the HDR at the absolute ",(0,i.kt)("inlineCode",{parentName:"p"},"path"),"."))}d.isMDXComponent=!0}}]);

View File

@@ -1 +0,0 @@
(self.webpackChunkstardust_website=self.webpackChunkstardust_website||[]).push([[342],{3905:function(e,t,n){"use strict";n.d(t,{Zo:function(){return u},kt:function(){return m}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),c=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):s(s({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),d=c(n),m=o,b=d["".concat(l,".").concat(m)]||d[m]||p[m]||i;return n?r.createElement(b,s(s({ref:t},u),{},{components:n})):r.createElement(b,s({ref:t},u))}));function m(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,s=new Array(i);s[0]=d;var a={};for(var l in t)hasOwnProperty.call(t,l)&&(a[l]=t[l]);a.originalType=e,a.mdxType="string"==typeof e?e:o,s[1]=a;for(var c=2;c<i;c++)s[c]=n[c];return r.createElement.apply(null,s)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},3960:function(e,t,n){"use strict";n.r(t),n.d(t,{frontMatter:function(){return a},contentTitle:function(){return l},metadata:function(){return c},toc:function(){return u},default:function(){return d}});var r=n(2122),o=n(9756),i=(n(7294),n(3905)),s=["components"],a={},l="/environment",c={unversionedId:"stardust-protocol/server/objects/environment",id:"stardust-protocol/server/objects/environment",isDocsHomePage:!1,title:"/environment",description:"Signals",source:"@site/docs/stardust-protocol/server/objects/environment.md",sourceDirName:"stardust-protocol/server/objects",slug:"/stardust-protocol/server/objects/environment",permalink:"/docs/stardust-protocol/server/objects/environment",editUrl:"https://github.com/StardustXR/website/edit/main/docs/stardust-protocol/server/objects/environment.md",version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"PointerInput",permalink:"/docs/stardust-protocol/server/types/input/inputtypes/PointerInput"},next:{title:"/field",permalink:"/docs/stardust-protocol/server/objects/field"}},u=[{value:"Signals",id:"signals",children:[{value:"<code>visible(bool enable)</code>",id:"visiblebool-enable",children:[]},{value:"<code>setSkytex(string path)</code>",id:"setskytexstring-path",children:[]},{value:"<code>setLighting(string path)</code>",id:"setlightingstring-path",children:[]}]}],p={toc:u};function d(e){var t=e.components,n=(0,o.Z)(e,s);return(0,i.kt)("wrapper",(0,r.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"environment"},"/environment"),(0,i.kt)("h2",{id:"signals"},"Signals"),(0,i.kt)("h3",{id:"visiblebool-enable"},(0,i.kt)("inlineCode",{parentName:"h3"},"visible(bool enable)")),(0,i.kt)("p",null,"Enable or disables the skybox visibility (lighting remains active). This is not meant to be used for an additive AR mode as StereoKit will perform that when the OpenXR runtime indicates the layer's blend mode is additive."),(0,i.kt)("h3",{id:"setskytexstring-path"},(0,i.kt)("inlineCode",{parentName:"h3"},"setSkytex(string path)")),(0,i.kt)("p",null,"Sets the sky texture to be the image (HDR) at the absolute ",(0,i.kt)("inlineCode",{parentName:"p"},"path"),"."),(0,i.kt)("h3",{id:"setlightingstring-path"},(0,i.kt)("inlineCode",{parentName:"h3"},"setLighting(string path)")),(0,i.kt)("p",null,"Sets the ambient lighting (using spherical harmonics) to the HDR at the absolute ",(0,i.kt)("inlineCode",{parentName:"p"},"path"),"."))}d.isMDXComponent=!0}}]);

View File

@@ -1 +0,0 @@
(self.webpackChunkstardust_website=self.webpackChunkstardust_website||[]).push([[347],{3905:function(e,t,r){"use strict";r.d(t,{Zo:function(){return d},kt:function(){return f}});var o=r(7294);function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var a=o.createContext({}),u=function(e){var t=o.useContext(a),r=t;return e&&(r="function"==typeof e?e(t):s(s({},t),e)),r},d=function(e){var t=u(e.components);return o.createElement(a.Provider,{value:t},e.children)},l={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},p=o.forwardRef((function(e,t){var r=e.components,n=e.mdxType,i=e.originalType,a=e.parentName,d=c(e,["components","mdxType","originalType","parentName"]),p=u(r),f=n,m=p["".concat(a,".").concat(f)]||p[f]||l[f]||i;return r?o.createElement(m,s(s({ref:t},d),{},{components:r})):o.createElement(m,s({ref:t},d))}));function f(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var i=r.length,s=new Array(i);s[0]=p;var c={};for(var a in t)hasOwnProperty.call(t,a)&&(c[a]=t[a]);c.originalType=e,c.mdxType="string"==typeof e?e:n,s[1]=c;for(var u=2;u<i;u++)s[u]=r[u];return o.createElement.apply(null,s)}return o.createElement.apply(null,r)}p.displayName="MDXCreateElement"},7869:function(e,t,r){"use strict";r.r(t),r.d(t,{frontMatter:function(){return c},contentTitle:function(){return a},metadata:function(){return u},toc:function(){return d},default:function(){return p}});var o=r(2122),n=r(9756),i=(r(7294),r(3905)),s=["components"],c={},a="/hmd",u={unversionedId:"stardust-protocol/server/objects/hmd",id:"stardust-protocol/server/objects/hmd",isDocsHomePage:!1,title:"/hmd",description:"Reference object to the HMD being used to render content and track head position.",source:"@site/docs/stardust-protocol/server/objects/hmd.md",sourceDirName:"stardust-protocol/server/objects",slug:"/stardust-protocol/server/objects/hmd",permalink:"/docs/stardust-protocol/server/objects/hmd",editUrl:"https://github.com/StardustXR/website/edit/main/docs/stardust-protocol/server/objects/hmd.md",version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"/field",permalink:"/docs/stardust-protocol/server/objects/field"},next:{title:"/input",permalink:"/docs/stardust-protocol/server/objects/input"}},d=[{value:"Signals",id:"signals",children:[{value:"<code>setPosition(Vector3 position)</code>",id:"setpositionvector3-position",children:[]},{value:"<code>setRotation(Quaternion rotation)</code>",id:"setrotationquaternion-rotation",children:[]},{value:"<code>setPose(Vector3 position, Quaternion rotation)</code>",id:"setposevector3-position-quaternion-rotation",children:[]},{value:"<code>setIPD(double meters)</code>",id:"setipddouble-meters",children:[]}]}],l={toc:d};function p(e){var t=e.components,r=(0,n.Z)(e,s);return(0,i.kt)("wrapper",(0,o.Z)({},l,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"hmd"},"/hmd"),(0,i.kt)("p",null,"Reference object to the HMD being used to render content and track head position."),(0,i.kt)("h2",{id:"signals"},"Signals"),(0,i.kt)("h3",{id:"setpositionvector3-position"},(0,i.kt)("inlineCode",{parentName:"h3"},"setPosition(Vector3 position)")),(0,i.kt)("h3",{id:"setrotationquaternion-rotation"},(0,i.kt)("inlineCode",{parentName:"h3"},"setRotation(Quaternion rotation)")),(0,i.kt)("h3",{id:"setposevector3-position-quaternion-rotation"},(0,i.kt)("inlineCode",{parentName:"h3"},"setPose(Vector3 position, Quaternion rotation)")),(0,i.kt)("h3",{id:"setipddouble-meters"},(0,i.kt)("inlineCode",{parentName:"h3"},"setIPD(double meters)")))}p.isMDXComponent=!0}}]);

View File

@@ -0,0 +1 @@
(self.webpackChunkstardust_website=self.webpackChunkstardust_website||[]).push([[347],{3905:function(e,t,r){"use strict";r.d(t,{Zo:function(){return p},kt:function(){return f}});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var a=n.createContext({}),u=function(e){var t=n.useContext(a),r=t;return e&&(r="function"==typeof e?e(t):s(s({},t),e)),r},p=function(e){var t=u(e.components);return n.createElement(a.Provider,{value:t},e.children)},l={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,c=e.originalType,a=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),d=u(r),f=o,m=d["".concat(a,".").concat(f)]||d[f]||l[f]||c;return r?n.createElement(m,s(s({ref:t},p),{},{components:r})):n.createElement(m,s({ref:t},p))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var c=r.length,s=new Array(c);s[0]=d;var i={};for(var a in t)hasOwnProperty.call(t,a)&&(i[a]=t[a]);i.originalType=e,i.mdxType="string"==typeof e?e:o,s[1]=i;for(var u=2;u<c;u++)s[u]=r[u];return n.createElement.apply(null,s)}return n.createElement.apply(null,r)}d.displayName="MDXCreateElement"},7869:function(e,t,r){"use strict";r.r(t),r.d(t,{frontMatter:function(){return i},contentTitle:function(){return a},metadata:function(){return u},toc:function(){return p},default:function(){return d}});var n=r(2122),o=r(9756),c=(r(7294),r(3905)),s=["components"],i={},a="/hmd",u={unversionedId:"stardust-protocol/server/objects/hmd",id:"stardust-protocol/server/objects/hmd",isDocsHomePage:!1,title:"/hmd",description:"Reference object to the HMD being used to render content and track head position. This does not currently work, but is planned to.",source:"@site/docs/stardust-protocol/server/objects/hmd.md",sourceDirName:"stardust-protocol/server/objects",slug:"/stardust-protocol/server/objects/hmd",permalink:"/docs/stardust-protocol/server/objects/hmd",editUrl:"https://github.com/StardustXR/website/edit/main/docs/stardust-protocol/server/objects/hmd.md",version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"/field",permalink:"/docs/stardust-protocol/server/objects/field"},next:{title:"/input",permalink:"/docs/stardust-protocol/server/objects/input"}},p=[],l={toc:p};function d(e){var t=e.components,r=(0,o.Z)(e,s);return(0,c.kt)("wrapper",(0,n.Z)({},l,r,{components:t,mdxType:"MDXLayout"}),(0,c.kt)("h1",{id:"hmd"},"/hmd"),(0,c.kt)("p",null,"Reference object to the HMD being used to render content and track head position. This does not currently work, but is planned to."))}d.isMDXComponent=!0}}]);

View File

@@ -1 +1 @@
(self.webpackChunkstardust_website=self.webpackChunkstardust_website||[]).push([[734],{3905:function(e,t,r){"use strict";r.d(t,{Zo:function(){return u},kt:function(){return f}});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var a=n.createContext({}),l=function(e){var t=n.useContext(a),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(a.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,a=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),d=l(r),f=o,m=d["".concat(a,".").concat(f)]||d[f]||p[f]||i;return r?n.createElement(m,c(c({ref:t},u),{},{components:r})):n.createElement(m,c({ref:t},u))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,c=new Array(i);c[0]=d;var s={};for(var a in t)hasOwnProperty.call(t,a)&&(s[a]=t[a]);s.originalType=e,s.mdxType="string"==typeof e?e:o,c[1]=s;for(var l=2;l<i;l++)c[l]=r[l];return n.createElement.apply(null,c)}return n.createElement.apply(null,r)}d.displayName="MDXCreateElement"},1524:function(e,t,r){"use strict";r.r(t),r.d(t,{frontMatter:function(){return s},contentTitle:function(){return a},metadata:function(){return l},toc:function(){return u},default:function(){return d}});var n=r(2122),o=r(9756),i=(r(7294),r(3905)),c=["components"],s={},a="/lifecycle",l={unversionedId:"stardust-protocol/server/objects/lifecycle",id:"stardust-protocol/server/objects/lifecycle",isDocsHomePage:!1,title:"/lifecycle",description:"Object representing the life cycle of the Stardust server, from start to each frame to end.",source:"@site/docs/stardust-protocol/server/objects/lifecycle.md",sourceDirName:"stardust-protocol/server/objects",slug:"/stardust-protocol/server/objects/lifecycle",permalink:"/docs/stardust-protocol/server/objects/lifecycle",editUrl:"https://github.com/StardustXR/website/edit/main/docs/stardust-protocol/server/objects/lifecycle.md",version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"/input",permalink:"/docs/stardust-protocol/server/objects/input"},next:{title:"/model",permalink:"/docs/stardust-protocol/server/objects/model"}},u=[{value:"Signals",id:"signals",children:[{value:"<code>subscribeLogicStep(string path, string method)</code>",id:"subscribelogicstepstring-path-string-method",children:[]}]}],p={toc:u};function d(e){var t=e.components,r=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,n.Z)({},p,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"lifecycle"},"/lifecycle"),(0,i.kt)("p",null,"Object representing the life cycle of the Stardust server, from start to each frame to end."),(0,i.kt)("h2",{id:"signals"},"Signals"),(0,i.kt)("h3",{id:"subscribelogicstepstring-path-string-method"},(0,i.kt)("inlineCode",{parentName:"h3"},"subscribeLogicStep(string path, string method)")),(0,i.kt)("p",null,"Executes ",(0,i.kt)("inlineCode",{parentName:"p"},"method")," on object at ",(0,i.kt)("inlineCode",{parentName:"p"},"path")," on the client when the main logic loop of the server starts each frame."),(0,i.kt)("p",null,(0,i.kt)("inlineCode",{parentName:"p"},"method")," must have arguments of ",(0,i.kt)("inlineCode",{parentName:"p"},"(double delta, double timeToRender)"),". "),(0,i.kt)("p",null,(0,i.kt)("inlineCode",{parentName:"p"},"delta")," gives the time in seconds between the current time and the last time the logic loop executed while ",(0,i.kt)("inlineCode",{parentName:"p"},"timeToRender")," gives the time in ms since epoch when the current frame is expected to reach the user's eyes."))}d.isMDXComponent=!0}}]);
(self.webpackChunkstardust_website=self.webpackChunkstardust_website||[]).push([[734],{3905:function(e,t,r){"use strict";r.d(t,{Zo:function(){return u},kt:function(){return f}});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var a=n.createContext({}),l=function(e){var t=n.useContext(a),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(a.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,a=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),d=l(r),f=o,m=d["".concat(a,".").concat(f)]||d[f]||p[f]||i;return r?n.createElement(m,c(c({ref:t},u),{},{components:r})):n.createElement(m,c({ref:t},u))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,c=new Array(i);c[0]=d;var s={};for(var a in t)hasOwnProperty.call(t,a)&&(s[a]=t[a]);s.originalType=e,s.mdxType="string"==typeof e?e:o,c[1]=s;for(var l=2;l<i;l++)c[l]=r[l];return n.createElement.apply(null,c)}return n.createElement.apply(null,r)}d.displayName="MDXCreateElement"},1524:function(e,t,r){"use strict";r.r(t),r.d(t,{frontMatter:function(){return s},contentTitle:function(){return a},metadata:function(){return l},toc:function(){return u},default:function(){return d}});var n=r(2122),o=r(9756),i=(r(7294),r(3905)),c=["components"],s={},a="/lifecycle",l={unversionedId:"stardust-protocol/server/objects/lifecycle",id:"stardust-protocol/server/objects/lifecycle",isDocsHomePage:!1,title:"/lifecycle",description:"Object representing the life cycle of the Stardust server, from start to each frame to end.",source:"@site/docs/stardust-protocol/server/objects/lifecycle.md",sourceDirName:"stardust-protocol/server/objects",slug:"/stardust-protocol/server/objects/lifecycle",permalink:"/docs/stardust-protocol/server/objects/lifecycle",editUrl:"https://github.com/StardustXR/website/edit/main/docs/stardust-protocol/server/objects/lifecycle.md",version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"/input",permalink:"/docs/stardust-protocol/server/objects/input"},next:{title:"/model",permalink:"/docs/stardust-protocol/server/objects/model"}},u=[{value:"Signals",id:"signals",children:[{value:"<code>subscribeLogicStep(string path, string method)</code>",id:"subscribelogicstepstring-path-string-method",children:[]}]}],p={toc:u};function d(e){var t=e.components,r=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,n.Z)({},p,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"lifecycle"},"/lifecycle"),(0,i.kt)("p",null,"Object representing the life cycle of the Stardust server, from start to each frame to end."),(0,i.kt)("h2",{id:"signals"},"Signals"),(0,i.kt)("h3",{id:"subscribelogicstepstring-path-string-method"},(0,i.kt)("inlineCode",{parentName:"h3"},"subscribeLogicStep(string path, string method)")),(0,i.kt)("p",null,"Executes ",(0,i.kt)("inlineCode",{parentName:"p"},"method")," on object at ",(0,i.kt)("inlineCode",{parentName:"p"},"path")," on the client when the main logic loop of the server starts each frame."),(0,i.kt)("p",null,(0,i.kt)("inlineCode",{parentName:"p"},"method")," must have arguments of ",(0,i.kt)("inlineCode",{parentName:"p"},"(double delta, double timeToRender)"),". "),(0,i.kt)("p",null,(0,i.kt)("inlineCode",{parentName:"p"},"delta")," gives the time in seconds between the current time and the last time the logic loop executed while ",(0,i.kt)("inlineCode",{parentName:"p"},"timeToRender")," gives the time in ms since epoch when the current frame is expected to reach the user's eyes (returns 0 for now)."))}d.isMDXComponent=!0}}]);

View File

@@ -1 +1 @@
!function(){"use strict";var e,t,r,n,o,f={},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={id:e,loaded:!1,exports:{}};return f[e].call(r.exports,r,r.exports,u),r.loaded=!0,r.exports}u.m=f,u.c=c,e=[],u.O=function(t,r,n,o){if(!r){var f=1/0;for(d=0;d<e.length;d++){r=e[d][0],n=e[d][1],o=e[d][2];for(var c=!0,a=0;a<r.length;a++)(!1&o||f>=o)&&Object.keys(u.O).every((function(e){return u.O[e](r[a])}))?r.splice(a--,1):(c=!1,o<f&&(f=o));if(c){e.splice(d--,1);var i=n();void 0!==i&&(t=i)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[r,n,o]},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},u.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);u.r(o);var f={};t=t||[null,r({}),r([]),r(r)];for(var c=2&n&&e;"object"==typeof c&&!~t.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach((function(t){f[t]=function(){return e[t]}}));return f.default=function(){return e},u.d(o,f),o},u.d=function(e,t){for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.f={},u.e=function(e){return Promise.all(Object.keys(u.f).reduce((function(t,r){return u.f[r](e,t),t}),[]))},u.u=function(e){return"assets/js/"+({16:"1fbe18c3",53:"935f2afb",74:"86790a84",85:"1f391b9e",121:"4cc9031b",195:"c4f5d8e4",272:"3e4d3f97",300:"b4e94af8",342:"003df647",347:"1134c138",351:"1dea05a0",487:"c9dc9d85",500:"614808c6",514:"1be78505",523:"c5e91741",587:"42ef8d41",659:"255c4b9f",671:"0e384e19",672:"5f7b5dec",734:"78a5a427",770:"493a26d0",852:"e3f705b4",855:"40d7c56e",918:"17896441",925:"57a1f8cb",993:"2bb13bfd"}[e]||e)+"."+{16:"99f31c05",53:"e88c5cdd",74:"669ae4bd",85:"2f7cafbf",111:"75041932",121:"6f727758",195:"918968b9",272:"f19a020b",300:"314c217b",342:"e507ecc8",347:"49f5d17d",351:"464fc163",486:"58eb0f8c",487:"b9bf6ecb",500:"b001d3fa",514:"41ee86ca",523:"6b9cd9b9",587:"3edccf78",608:"7f4ce0f0",615:"e1d6d5a1",659:"c65b0156",668:"6e212175",671:"54e5cc8e",672:"fc261658",734:"d28e8492",770:"a3eb14ea",852:"9fccf29c",855:"4a8b2815",918:"0ff9f9f9",925:"9da7858d",993:"e204e0d9"}[e]+".js"},u.miniCssF=function(e){return"assets/css/styles.bd63019b.css"},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},o="stardust-website:",u.l=function(e,t,r,f){if(n[e])n[e].push(t);else{var c,a;if(void 0!==r)for(var i=document.getElementsByTagName("script"),d=0;d<i.length;d++){var b=i[d];if(b.getAttribute("src")==e||b.getAttribute("data-webpack")==o+r){c=b;break}}c||(a=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,u.nc&&c.setAttribute("nonce",u.nc),c.setAttribute("data-webpack",o+r),c.src=e),n[e]=[t];var s=function(t,r){c.onerror=c.onload=null,clearTimeout(l);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((function(e){return e(r)})),t)return t(r)},l=setTimeout(s.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=s.bind(null,c.onerror),c.onload=s.bind(null,c.onload),a&&document.head.appendChild(c)}},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.p="/",u.gca=function(e){return e={17896441:"918","1fbe18c3":"16","935f2afb":"53","86790a84":"74","1f391b9e":"85","4cc9031b":"121",c4f5d8e4:"195","3e4d3f97":"272",b4e94af8:"300","003df647":"342","1134c138":"347","1dea05a0":"351",c9dc9d85:"487","614808c6":"500","1be78505":"514",c5e91741:"523","42ef8d41":"587","255c4b9f":"659","0e384e19":"671","5f7b5dec":"672","78a5a427":"734","493a26d0":"770",e3f705b4:"852","40d7c56e":"855","57a1f8cb":"925","2bb13bfd":"993"}[e]||e,u.p+u.u(e)},function(){var e={303:0,532:0};u.f.j=function(t,r){var n=u.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(303|532)$/.test(t))e[t]=0;else{var o=new Promise((function(r,o){n=e[t]=[r,o]}));r.push(n[2]=o);var f=u.p+u.u(t),c=new Error;u.l(f,(function(r){if(u.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),f=r&&r.target&&r.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+f+")",c.name="ChunkLoadError",c.type=o,c.request=f,n[1](c)}}),"chunk-"+t,t)}},u.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,o,f=r[0],c=r[1],a=r[2],i=0;for(n in c)u.o(c,n)&&(u.m[n]=c[n]);if(a)var d=a(u);for(t&&t(r);i<f.length;i++)o=f[i],u.o(e,o)&&e[o]&&e[o][0](),e[f[i]]=0;return u.O(d)},r=self.webpackChunkstardust_website=self.webpackChunkstardust_website||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}()}();
!function(){"use strict";var e,t,r,n,o,f={},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={id:e,loaded:!1,exports:{}};return f[e].call(r.exports,r,r.exports,u),r.loaded=!0,r.exports}u.m=f,u.c=c,e=[],u.O=function(t,r,n,o){if(!r){var f=1/0;for(d=0;d<e.length;d++){r=e[d][0],n=e[d][1],o=e[d][2];for(var c=!0,a=0;a<r.length;a++)(!1&o||f>=o)&&Object.keys(u.O).every((function(e){return u.O[e](r[a])}))?r.splice(a--,1):(c=!1,o<f&&(f=o));if(c){e.splice(d--,1);var i=n();void 0!==i&&(t=i)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[r,n,o]},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},u.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);u.r(o);var f={};t=t||[null,r({}),r([]),r(r)];for(var c=2&n&&e;"object"==typeof c&&!~t.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach((function(t){f[t]=function(){return e[t]}}));return f.default=function(){return e},u.d(o,f),o},u.d=function(e,t){for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.f={},u.e=function(e){return Promise.all(Object.keys(u.f).reduce((function(t,r){return u.f[r](e,t),t}),[]))},u.u=function(e){return"assets/js/"+({16:"1fbe18c3",53:"935f2afb",74:"86790a84",85:"1f391b9e",121:"4cc9031b",195:"c4f5d8e4",272:"3e4d3f97",300:"b4e94af8",342:"003df647",347:"1134c138",351:"1dea05a0",487:"c9dc9d85",500:"614808c6",514:"1be78505",523:"c5e91741",587:"42ef8d41",659:"255c4b9f",671:"0e384e19",672:"5f7b5dec",734:"78a5a427",770:"493a26d0",852:"e3f705b4",855:"40d7c56e",918:"17896441",925:"57a1f8cb",993:"2bb13bfd"}[e]||e)+"."+{16:"99f31c05",53:"e88c5cdd",74:"669ae4bd",85:"2f7cafbf",111:"75041932",121:"6f727758",195:"918968b9",272:"f19a020b",300:"314c217b",342:"8de77408",347:"4af2cbb7",351:"464fc163",486:"58eb0f8c",487:"b9bf6ecb",500:"b001d3fa",514:"41ee86ca",523:"6b9cd9b9",587:"3edccf78",608:"7f4ce0f0",615:"e1d6d5a1",659:"c65b0156",668:"6e212175",671:"54e5cc8e",672:"fc261658",734:"0cdd6bb5",770:"a3eb14ea",852:"9fccf29c",855:"4a8b2815",918:"0ff9f9f9",925:"9da7858d",993:"e204e0d9"}[e]+".js"},u.miniCssF=function(e){return"assets/css/styles.bd63019b.css"},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},o="stardust-website:",u.l=function(e,t,r,f){if(n[e])n[e].push(t);else{var c,a;if(void 0!==r)for(var i=document.getElementsByTagName("script"),d=0;d<i.length;d++){var b=i[d];if(b.getAttribute("src")==e||b.getAttribute("data-webpack")==o+r){c=b;break}}c||(a=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,u.nc&&c.setAttribute("nonce",u.nc),c.setAttribute("data-webpack",o+r),c.src=e),n[e]=[t];var s=function(t,r){c.onerror=c.onload=null,clearTimeout(l);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((function(e){return e(r)})),t)return t(r)},l=setTimeout(s.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=s.bind(null,c.onerror),c.onload=s.bind(null,c.onload),a&&document.head.appendChild(c)}},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.p="/",u.gca=function(e){return e={17896441:"918","1fbe18c3":"16","935f2afb":"53","86790a84":"74","1f391b9e":"85","4cc9031b":"121",c4f5d8e4:"195","3e4d3f97":"272",b4e94af8:"300","003df647":"342","1134c138":"347","1dea05a0":"351",c9dc9d85:"487","614808c6":"500","1be78505":"514",c5e91741:"523","42ef8d41":"587","255c4b9f":"659","0e384e19":"671","5f7b5dec":"672","78a5a427":"734","493a26d0":"770",e3f705b4:"852","40d7c56e":"855","57a1f8cb":"925","2bb13bfd":"993"}[e]||e,u.p+u.u(e)},function(){var e={303:0,532:0};u.f.j=function(t,r){var n=u.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(303|532)$/.test(t))e[t]=0;else{var o=new Promise((function(r,o){n=e[t]=[r,o]}));r.push(n[2]=o);var f=u.p+u.u(t),c=new Error;u.l(f,(function(r){if(u.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),f=r&&r.target&&r.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+f+")",c.name="ChunkLoadError",c.type=o,c.request=f,n[1](c)}}),"chunk-"+t,t)}},u.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,o,f=r[0],c=r[1],a=r[2],i=0;for(n in c)u.o(c,n)&&(u.m[n]=c[n]);if(a)var d=a(u);for(t&&t(r);i<f.length;i++)o=f[i],u.o(e,o)&&e[o]&&e[o][0](),e[f[i]]=0;return u.O(d)},r=self.webpackChunkstardust_website=self.webpackChunkstardust_website||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}()}();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long