(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59992],{49931:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reference/cgameclient",function(){return n(92026)}])},92026:function(e,s,n){"use strict";n.r(s),n.d(s,{__toc:function(){return i}});var t=n(85893),r=n(92673),o=n(82643);let i=[{depth:2,value:"CGameClient class",id:"cgameclient-class"},{depth:2,value:"Remarks",id:"remarks"},{depth:2,value:"Methods",id:"methods"}];function _createMdxContent(e){let s=Object.assign({h2:"h2",p:"p",strong:"strong",pre:"pre",code:"code",span:"span",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",a:"a"},(0,o.a)(),e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h2,{id:"cgameclient-class",children:"CGameClient class"}),"\n",(0,t.jsx)(s.p,{children:"A Game client instance is used to join a game room on the server"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.strong,{children:"Signature:"})}),"\n",(0,t.jsx)(s.pre,{"data-language":"typescript","data-theme":"default",children:(0,t.jsx)(s.code,{"data-language":"typescript","data-theme":"default",children:(0,t.jsxs)(s.span,{className:"line",children:[(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"export"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"declare"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"class"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"CGameClient"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"<"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"S"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"extends"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"BaseRoomState"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"any"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"CM"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"any"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-punctuation)"},children:","}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"RM"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-keyword)"},children:"="}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:" "}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-token-constant)"},children:"any"}),(0,t.jsx)(s.span,{style:{color:"var(--shiki-color-text)"},children:"> "})]})})}),"\n",(0,t.jsx)(s.h2,{id:"remarks",children:"Remarks"}),"\n",(0,t.jsxs)(s.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(s.code,{children:"CGameClient"})," class."]}),"\n",(0,t.jsx)(s.h2,{id:"methods",children:"Methods"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsxs)(s.th,{children:["\n",(0,t.jsx)(s.p,{children:"Method"}),"\n"]}),(0,t.jsxs)(s.th,{children:["\n",(0,t.jsx)(s.p,{children:"Modifiers"}),"\n"]}),(0,t.jsxs)(s.th,{children:["\n",(0,t.jsx)(s.p,{children:"Description"}),"\n"]})]})}),(0,t.jsx)(s.tbody,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsxs)(s.td,{children:["\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"/reference/cgameclient/join",children:"join(opts)"})}),"\n"]}),(0,t.jsx)(s.td,{children:"\n"}),(0,t.jsxs)(s.td,{children:["\n",(0,t.jsxs)(s.p,{children:["Used to join a game room on the server Returns a ",(0,t.jsx)(s.a,{href:"/reference/gameroom",children:"GameRoom"})," instance"]}),"\n"]})]})})]})]})}s.default=(0,r.j)({MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}=Object.assign({},(0,o.a)(),e.components);return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(_createMdxContent,{...e})}):_createMdxContent(e)},pageOpts:{filePath:"pages/reference/cgameclient.md",route:"/reference/cgameclient",timestamp:1727164547e3,title:"Cgameclient",headings:i},pageNextRoute:"/reference/cgameclient"})}},function(e){e.O(0,[92673,49774,92888,40179],function(){return e(e.s=49931)}),_N_E=e.O()}]);