(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2785],{7700:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/world/reference/resource-ids",function(){return s(3206)}])},3307:function(e,r,s){"use strict";s.d(r,{Z:function(){return i}});var t=s(7505),n=s(1689);let o={logo:function(){return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.25em",fontSize:"32px",fontFamily:"PP Supply Mono",textTransform:"uppercase"},children:[(0,t.jsx)("img",{src:"/images/logos/mud-white.svg",style:{height:"calc(var(--nextra-navbar-height) - 35px)"},alt:"MUD logo"}),"MUD"]})},useNextSeoProps(){let{asPath:e}=(0,n.useRouter)();return{titleTemplate:"/"===e?"MUD – a framework for ambitious Ethereum applications":"%s – MUD"}},project:{link:"https://github.com/latticexyz/mud"},docsRepositoryBase:"https://github.com/latticexyz/mud/tree/main/docs",head:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("meta",{property:"title",content:"MUD documentation"})}),darkMode:!1,nextThemes:{defaultTheme:"dark"},footer:{text:"MIT 2023 \xa9 MUD"},primaryHue:28,sidebar:{defaultMenuCollapseLevel:1}};var i=o},3206:function(e,r,s){"use strict";s.r(r);var t=s(7505),n=s(2585),o=s(6252),i=s(3307);s(4693);var l=s(6736);s(8823);let d={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:r}=Object.assign({},(0,l.ah)(),e.components);return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(a,{...e})}):a(e)},pageOpts:{filePath:"pages/world/reference/resource-ids.mdx",route:"/world/reference/resource-ids",headings:[{depth:2,value:"WorldResourceId.sol constants",id:"worldresourceidsol-constants"},{depth:4,value:"NAMESPACE_BYTES",id:"namespace_bytes"},{depth:4,value:"NAMESPACE_BITS",id:"namespace_bits"},{depth:4,value:"NAME_BITS",id:"name_bits"},{depth:4,value:"NAMESPACE_MASK",id:"namespace_mask"},{depth:2,value:"WorldResourceIdInstance",id:"worldresourceidinstance"},{depth:3,value:"Functions",id:"functions"},{depth:4,value:"getNamespace",id:"getnamespace"},{depth:4,value:"getNamespaceId",id:"getnamespaceid"},{depth:4,value:"getName",id:"getname"},{depth:4,value:"toString",id:"tostring"},{depth:2,value:"WorldResourceIdLib",id:"worldresourceidlib"},{depth:3,value:"Functions",id:"functions-1"},{depth:4,value:"encode",id:"encode"},{depth:4,value:"encodeNamespace",id:"encodenamespace"},{depth:4,value:"toTrimmedString",id:"totrimmedstring"},{depth:2,value:"worldResourceTypes.sol constants",id:"worldresourcetypessol-constants"},{depth:4,value:"RESOURCE_NAMESPACE",id:"resource_namespace"},{depth:4,value:"RESOURCE_SYSTEM",id:"resource_system"},{depth:4,value:"MASK_RESOURCE_NAMESPACE",id:"mask_resource_namespace"}],pageMap:[{kind:"Meta",data:{introduction:{title:"What is MUD?",theme:{breadcrumb:!1}},quickstart:{title:"Get started",theme:{breadcrumb:!1}},protocol:{title:"Protocol",type:"separator"},store:"Store",world:"World",framework:{title:"Framework",type:"separator"},config:"Config",cli:"CLI","state-query":"State Query",services:"Services","---":{title:"",type:"separator"},guides:"Guides",templates:"Templates",contribute:{title:"Contribute",theme:{breadcrumb:!1}},changelog:"Changelog",retrospectives:"Retrospectives",version:{title:"2.0.0-next.17",type:"menu",items:{changelog:{title:"Changelog",href:"/changelog"},contribute:{title:"Contribute",href:"/contribute"}}},status:{title:"Status",type:"page",href:"https://status.mud.dev",newWindow:!0},community:{title:"Community",type:"page",href:"https://community.mud.dev",newWindow:!0},twitter:{title:"Twitter",type:"page",href:"https://twitter.com/latticexyz",newWindow:!0},discord:{title:"Discord",type:"page",href:"https://lattice.xyz/discord",newWindow:!0}}},{kind:"MdxPage",name:"changelog",route:"/changelog"},{kind:"Folder",name:"cli",route:"/cli",children:[{kind:"Meta",data:{tablegen:"mud tablegen",worldgen:"mud worldgen",test:"mud test",deploy:"mud deploy","dev-contracts":"mud dev-contracts","abi-ts":"mud abi-ts",faucet:"mud faucet","set-version":"mud set-version"}},{kind:"MdxPage",name:"abi-ts",route:"/cli/abi-ts"},{kind:"MdxPage",name:"deploy",route:"/cli/deploy"},{kind:"MdxPage",name:"dev-contracts",route:"/cli/dev-contracts"},{kind:"MdxPage",name:"faucet",route:"/cli/faucet"},{kind:"MdxPage",name:"set-version",route:"/cli/set-version"},{kind:"MdxPage",name:"tablegen",route:"/cli/tablegen"},{kind:"MdxPage",name:"test",route:"/cli/test"},{kind:"MdxPage",name:"worldgen",route:"/cli/worldgen"}]},{kind:"MdxPage",name:"config",route:"/config"},{kind:"MdxPage",name:"contribute",route:"/contribute"},{kind:"Folder",name:"guides",route:"/guides",children:[{kind:"Meta",data:{"replicating-onchain-state":"Replicating onchain state","hello-world":"Hello World","extending-a-world":"Extending a World",emojimon:"Emojimon"}},{kind:"Folder",name:"emojimon",route:"/guides/emojimon",children:[{kind:"MdxPage",name:"1-preface-the-ecs-model",route:"/guides/emojimon/1-preface-the-ecs-model"},{kind:"MdxPage",name:"2-getting-started",route:"/guides/emojimon/2-getting-started"},{kind:"MdxPage",name:"3-players-and-movement",route:"/guides/emojimon/3-players-and-movement"},{kind:"MdxPage",name:"4-map-and-terrain",route:"/guides/emojimon/4-map-and-terrain"},{kind:"MdxPage",name:"5-a-wild-emojimon-appears",route:"/guides/emojimon/5-a-wild-emojimon-appears"},{kind:"MdxPage",name:"6-advanced",route:"/guides/emojimon/6-advanced"},{kind:"Meta",data:{"1-preface-the-ecs-model":"Preface: the ECS model","2-getting-started":"Getting started","3-players-and-movement":"Players and movement","4-map-and-terrain":"Map and terrain","5-a-wild-emojimon-appears":"A wild Emojimon appears","6-advanced":"Advanced features"}}]},{kind:"MdxPage",name:"emojimon",route:"/guides/emojimon"},{kind:"MdxPage",name:"extending-a-world",route:"/guides/extending-a-world"},{kind:"Folder",name:"hello-world",route:"/guides/hello-world",children:[{kind:"Meta",data:{"add-table":"Add a table","filter-sync":"Filter data synchronization","add-system":"Add a system",deploy:{title:"Deploy to a blockchain",href:"/cli/deploy"}}},{kind:"MdxPage",name:"add-system",route:"/guides/hello-world/add-system"},{kind:"MdxPage",name:"add-table",route:"/guides/hello-world/add-table"},{kind:"MdxPage",name:"filter-sync",route:"/guides/hello-world/filter-sync"}]},{kind:"MdxPage",name:"hello-world",route:"/guides/hello-world"},{kind:"MdxPage",name:"replicating-onchain-state",route:"/guides/replicating-onchain-state"}]},{kind:"MdxPage",name:"introduction",route:"/introduction"},{kind:"MdxPage",name:"quickstart",route:"/quickstart"},{kind:"Folder",name:"retrospectives",route:"/retrospectives",children:[{kind:"MdxPage",name:"2023-09-12-register-system-vulnerability",route:"/retrospectives/2023-09-12-register-system-vulnerability"},{kind:"Meta",data:{"2023-09-12-register-system-vulnerability":"2023-09-12 registerSystem vulnerability"}}]},{kind:"Folder",name:"services",route:"/services",children:[{kind:"Meta",data:{indexer:"Indexer",faucet:"Faucet"}},{kind:"MdxPage",name:"faucet",route:"/services/faucet"},{kind:"MdxPage",name:"indexer",route:"/services/indexer"}]},{kind:"Folder",name:"state-query",route:"/state-query",children:[{kind:"Meta",data:{typescript:"TypeScript"}},{kind:"Folder",name:"typescript",route:"/state-query/typescript",children:[{kind:"Meta",data:{recs:"RECS",zustand:"Zustand"}},{kind:"MdxPage",name:"recs",route:"/state-query/typescript/recs"},{kind:"MdxPage",name:"zustand",route:"/state-query/typescript/zustand"}]}]},{kind:"Folder",name:"store",route:"/store",children:[{kind:"Meta",data:{introduction:"Introduction","data-model":"Data model",tables:"Tables","table-libraries":"Table libraries",encoding:"Encoding","store-hooks":"Store hooks",reference:"Reference"}},{kind:"MdxPage",name:"data-model",route:"/store/data-model"},{kind:"MdxPage",name:"encoding",route:"/store/encoding"},{kind:"MdxPage",name:"introduction",route:"/store/introduction"},{kind:"Folder",name:"reference",route:"/store/reference",children:[{kind:"Meta",data:{"store-core":"StoreCore (internal)",store:"IStore (external)","store-hook":"StoreHook",misc:"Miscellaneous"}},{kind:"MdxPage",name:"misc",route:"/store/reference/misc"},{kind:"MdxPage",name:"store-core",route:"/store/reference/store-core"},{kind:"MdxPage",name:"store-hook",route:"/store/reference/store-hook"},{kind:"MdxPage",name:"store",route:"/store/reference/store"}]},{kind:"MdxPage",name:"store-hooks",route:"/store/store-hooks"},{kind:"MdxPage",name:"table-libraries",route:"/store/table-libraries"},{kind:"MdxPage",name:"tables",route:"/store/tables"}]},{kind:"Folder",name:"templates",route:"/templates",children:[{kind:"Meta",data:{typescript:"TypeScript",godot:"Godot",pwa:"Progressive Web App (for mobile)",swift:"Swift",svelte:"Svelte",unity:"Unity",disclaimer:{display:"hidden",title:"Disclaimer"}}},{kind:"MdxPage",name:"disclaimer",route:"/templates/disclaimer"},{kind:"MdxPage",name:"godot",route:"/templates/godot"},{kind:"MdxPage",name:"pwa",route:"/templates/pwa"},{kind:"MdxPage",name:"svelte",route:"/templates/svelte"},{kind:"MdxPage",name:"swift",route:"/templates/swift"},{kind:"Folder",name:"typescript",route:"/templates/typescript",children:[{kind:"Meta",data:{"getting-started":"Getting Started",contracts:"Contracts",vanilla:"Vanilla","react-ecs":"React-ECS",three:"Three.js"}},{kind:"MdxPage",name:"contracts",route:"/templates/typescript/contracts"},{kind:"MdxPage",name:"getting-started",route:"/templates/typescript/getting-started"},{kind:"MdxPage",name:"react-ecs",route:"/templates/typescript/react-ecs"},{kind:"MdxPage",name:"three",route:"/templates/typescript/three"},{kind:"MdxPage",name:"vanilla",route:"/templates/typescript/vanilla"}]},{kind:"MdxPage",name:"unity",route:"/templates/unity"}]},{kind:"Folder",name:"world",route:"/world",children:[{kind:"Meta",data:{introduction:"Introduction","namespaces-access-control":"Namespaces & Access Control",tables:"Tables",systems:"Systems","system-hooks":"System Hooks","function-selectors":"Function Selectors",balance:"Balance","account-delegation":"Account Delegation","batch-calls":"Batch Calls",modules:"Modules",reference:"Reference","world-table-illustration":{display:"hidden",title:"World Table Illustration"}}},{kind:"MdxPage",name:"account-delegation",route:"/world/account-delegation"},{kind:"MdxPage",name:"balance",route:"/world/balance"},{kind:"MdxPage",name:"batch-calls",route:"/world/batch-calls"},{kind:"MdxPage",name:"function-selectors",route:"/world/function-selectors"},{kind:"MdxPage",name:"introduction",route:"/world/introduction"},{kind:"Folder",name:"modules",route:"/world/modules",children:[{kind:"Meta",data:{keyswithvalue:"Keys with Value"}},{kind:"MdxPage",name:"keyswithvalue",route:"/world/modules/keyswithvalue"}]},{kind:"MdxPage",name:"modules",route:"/world/modules"},{kind:"MdxPage",name:"namespaces-access-control",route:"/world/namespaces-access-control"},{kind:"Folder",name:"reference",route:"/world/reference",children:[{kind:"Meta",data:{"delegation-external":"Delegation (interface)",module:"Modules","module-external":"Modules (interface)",system:"Systems","system-external":"Systems (interface)",world:"World","world-external":"World (interfaces)","world-context":"World context","world-context-external":"World context (interface)","resource-ids":"Resource IDs",misc:"Miscellaneous",internal:"Internals"}},{kind:"MdxPage",name:"delegation-external",route:"/world/reference/delegation-external"},{kind:"Folder",name:"internal",route:"/world/reference/internal",children:[{kind:"Meta",data:{"access-control":"Access Control",create:"Create2",delegation:"Delegation",erc165:"ERC165","erc165-external":"ERC165 (interface)","init-module":"Init Module","init-module-implementation":"Init Module Implementation",systemcall:"SystemCall"}},{kind:"MdxPage",name:"access-control",route:"/world/reference/internal/access-control"},{kind:"MdxPage",name:"create",route:"/world/reference/internal/create"},{kind:"MdxPage",name:"delegation",route:"/world/reference/internal/delegation"},{kind:"MdxPage",name:"erc165-external",route:"/world/reference/internal/erc165-external"},{kind:"MdxPage",name:"erc165",route:"/world/reference/internal/erc165"},{kind:"MdxPage",name:"init-module-implementation",route:"/world/reference/internal/init-module-implementation"},{kind:"MdxPage",name:"init-module",route:"/world/reference/internal/init-module"},{kind:"MdxPage",name:"systemcall",route:"/world/reference/internal/systemcall"}]},{kind:"MdxPage",name:"misc",route:"/world/reference/misc"},{kind:"MdxPage",name:"module-external",route:"/world/reference/module-external"},{kind:"MdxPage",name:"module",route:"/world/reference/module"},{kind:"MdxPage",name:"resource-ids",route:"/world/reference/resource-ids"},{kind:"MdxPage",name:"system-external",route:"/world/reference/system-external"},{kind:"MdxPage",name:"system",route:"/world/reference/system"},{kind:"MdxPage",name:"world-context-external",route:"/world/reference/world-context-external"},{kind:"MdxPage",name:"world-context",route:"/world/reference/world-context"},{kind:"MdxPage",name:"world-external",route:"/world/reference/world-external"},{kind:"MdxPage",name:"world",route:"/world/reference/world"}]},{kind:"MdxPage",name:"system-hooks",route:"/world/system-hooks"},{kind:"MdxPage",name:"systems",route:"/world/systems"},{kind:"MdxPage",name:"tables",route:"/world/tables"},{kind:"MdxPage",name:"world-table-illustration",route:"/world/world-table-illustration"}]}],flexsearch:{codeblocks:!0},title:"Resource Ids"},pageNextRoute:"/world/reference/resource-ids",nextraLayout:o.ZP,themeConfig:i.Z};function a(e){let r=Object.assign({h2:"h2",p:"p",a:"a",h4:"h4",pre:"pre",code:"code",span:"span",h3:"h3",strong:"strong",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",em:"em"},(0,l.ah)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h2,{id:"worldresourceidsol-constants",children:"WorldResourceId.sol constants"}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/world/src/WorldResourceId.sol",children:"Git Source"})}),"\n",(0,t.jsx)(r.h4,{id:"namespace_bytes",children:"NAMESPACE_BYTES"}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" NAMESPACE_BYTES "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"14"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,t.jsx)(r.h4,{id:"namespace_bits",children:"NAMESPACE_BITS"}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" NAMESPACE_BITS "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"14"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"8"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,t.jsx)(r.h4,{id:"name_bits",children:"NAME_BITS"}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"uint256"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" NAME_BITS "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"16"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"*"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"8"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,t.jsx)(r.h4,{id:"namespace_mask",children:"NAMESPACE_MASK"}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" NAMESPACE_MASK "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:"(~"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes14"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-string-expression)"},children:'""'}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:")) "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:">>"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" (TYPE_BITS);"})]})})}),"\n",(0,t.jsx)(r.h2,{id:"worldresourceidinstance",children:"WorldResourceIdInstance"}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/world/src/WorldResourceId.sol",children:"Git Source"})}),"\n",(0,t.jsx)(r.p,{children:"A library for handling instances of World Resource IDs."}),"\n",(0,t.jsx)(r.h3,{id:"functions",children:"Functions"}),"\n",(0,t.jsx)(r.h4,{id:"getnamespace",children:"getNamespace"}),"\n",(0,t.jsx)(r.p,{children:"Get the namespace from a resource ID."}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-function)"},children:"getNamespace"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" resourceId) "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes14"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"resourceId"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"ResourceId"})}),(0,t.jsx)(r.td,{children:"The resource ID."})]})})]}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"<none>"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"bytes14"})}),(0,t.jsx)(r.td,{children:"A 14-byte namespace."})]})})]}),"\n",(0,t.jsx)(r.h4,{id:"getnamespaceid",children:"getNamespaceId"}),"\n",(0,t.jsx)(r.p,{children:"Get the namespace ID from a resource ID."}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-function)"},children:"getNamespaceId"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" resourceId) "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"resourceId"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"ResourceId"})}),(0,t.jsx)(r.td,{children:"The resource ID."})]})})]}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"<none>"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"ResourceId"})}),(0,t.jsx)(r.td,{children:"A 32-byte namespace resource ID."})]})})]}),"\n",(0,t.jsx)(r.h4,{id:"getname",children:"getName"}),"\n",(0,t.jsx)(r.p,{children:"Get the name from a resource ID."}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-function)"},children:"getName"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" resourceId) "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes16"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"resourceId"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"ResourceId"})}),(0,t.jsx)(r.td,{children:"The resource ID."})]})})]}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"<none>"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"bytes16"})}),(0,t.jsx)(r.td,{children:"A 16-byte name."})]})})]}),"\n",(0,t.jsx)(r.h4,{id:"tostring",children:"toString"}),"\n",(0,t.jsx)(r.p,{children:"Convert a resource ID to a string."}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-function)"},children:"toString"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" resourceId) "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"resourceId"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"ResourceId"})}),(0,t.jsx)(r.td,{children:"The resource ID."})]})})]}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"<none>"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"string"})}),(0,t.jsx)(r.td,{children:"A string representation of the resource ID."})]})})]}),"\n",(0,t.jsx)(r.h2,{id:"worldresourceidlib",children:"WorldResourceIdLib"}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/world/src/WorldResourceId.sol",children:"Git Source"})}),"\n",(0,t.jsx)(r.p,{children:"A library for handling World Resource ID encoding and decoding."}),"\n",(0,t.jsx)(r.h3,{id:"functions-1",children:"Functions"}),"\n",(0,t.jsx)(r.h4,{id:"encode",children:"encode"}),"\n",(0,t.jsx)(r.p,{children:"Encode a resource ID."}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-function)"},children:"encode"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes2"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" typeId"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes14"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" namespace"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes16"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" name) "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsxs)(r.tbody,{children:[(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"typeId"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"bytes2"})}),(0,t.jsx)(r.td,{children:"The resource type ID."})]}),(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"namespace"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"bytes14"})}),(0,t.jsx)(r.td,{children:"The namespace of the resource."})]}),(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"name"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"bytes16"})}),(0,t.jsx)(r.td,{children:"The name of the resource."})]})]})]}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"<none>"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"ResourceId"})}),(0,t.jsx)(r.td,{children:"A 32-byte resource ID."})]})})]}),"\n",(0,t.jsx)(r.h4,{id:"encodenamespace",children:"encodeNamespace"}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.a,{href:"/world/systems#registering-systems",children:"Usage Sample"})}),"\n",(0,t.jsx)(r.p,{children:"Encode a namespace to resource ID."}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-function)"},children:"encodeNamespace"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes14"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" namespace) "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"ResourceId"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"namespace"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"bytes14"})}),(0,t.jsx)(r.td,{children:"The namespace to be encoded."})]})})]}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"<none>"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"ResourceId"})}),(0,t.jsx)(r.td,{children:"A 32-byte resource ID with the namespace encoded."})]})})]}),"\n",(0,t.jsx)(r.h4,{id:"totrimmedstring",children:"toTrimmedString"}),"\n",(0,t.jsx)(r.p,{children:"Convert a padded string to a trimmed string."}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"function"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-function)"},children:"toTrimmedString"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:"("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes16"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" paddedString) "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"internal"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"pure"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"returns"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" ("}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"string"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"memory"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:");"})]})})}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Parameters"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"paddedString"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"bytes16"})}),(0,t.jsx)(r.td,{children:"The input string with potential padding."})]})})]}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns"})}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Name"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsx)(r.tbody,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"<none>"})}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.code,{children:"string"})}),(0,t.jsx)(r.td,{children:"A string without trailing null ASCII characters."})]})})]}),"\n",(0,t.jsx)(r.h2,{id:"worldresourcetypessol-constants",children:"worldResourceTypes.sol constants"}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.a,{href:"https://github.com/latticexyz/mud/blob/main/packages/world/src/worldResourceTypes.sol",children:"Git Source"})}),"\n",(0,t.jsx)(r.h4,{id:"resource_namespace",children:"RESOURCE_NAMESPACE"}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.em,{children:"Constants used to work with world resource types."})}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes2"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" RESOURCE_NAMESPACE "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"ns"'}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,t.jsx)(r.h4,{id:"resource_system",children:"RESOURCE_SYSTEM"}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes2"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" RESOURCE_SYSTEM "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-string-expression)"},children:'"sy"'}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:";"})]})})}),"\n",(0,t.jsx)(r.h4,{id:"mask_resource_namespace",children:"MASK_RESOURCE_NAMESPACE"}),"\n",(0,t.jsx)(r.pre,{"data-language":"solidity","data-theme":"default",children:(0,t.jsx)(r.code,{"data-language":"solidity","data-theme":"default",children:(0,t.jsxs)(r.span,{className:"line",children:[(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"constant"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" MASK_RESOURCE_NAMESPACE "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-token-constant)"},children:"bytes32"}),(0,t.jsx)(r.span,{style:{color:"var(--shiki-color-text)"},children:"(RESOURCE_NAMESPACE);"})]})})})]})}r.default=(0,n.j)(d)}},function(e){e.O(0,[1877,2888,179],function(){return e(e.s=7700)}),_N_E=e.O()}]);