1"use strict";(globalThis.webpackChunkdocs||=[]).push([[3749],{96488(e,s,t){t.r(s),t.d(s,{assets:()=>l,contentTitle:()=>r,default:()=>d,frontMatter:()=>c,metadata:()=>n,toc:()=>C});const n=JSON.parse('{"id":"api/cocos2d.cctmxlayer","title":"CCTMXLayer","description":"Inheritance: System.Object \u2192 Cocos2D.CCNode \u2192 Cocos2D.CCSpriteBatchNode","source":"@site/docs/api/Cocos2D.CCTMXLayer.md","sourceDirName":"api","slug":"/api/cocos2d.cctmxlayer","permalink":"/docs/api/cocos2d.cctmxlayer","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"id":"cocos2d.cctmxlayer","title":"CCTMXLayer","sidebar_label":"CCTMXLayer","hide_table_of_contents":false},"sidebar":"api","previous":{"title":"CCSwitchValueChangedDelegate","permalink":"/docs/api/cocos2d.ccswitchvaluechangeddelegate"},"next":{"title":"CCTMXLayerAttrib","permalink":"/docs/api/cocos2d.cctmxlayerattrib"}}');var o=t(74848),a=t(28453),i=t(75100);const c={id:"cocos2d.cctmxlayer",title:"CCTMXLayer",sidebar_label:"CCTMXLayer",hide_table_of_contents:!1},r=void 0,l={},C=[{value:"Constructors",id:"constructors",level:2},{value:"Fields",id:"fields",level:2},{value:"Properties",id:"properties",level:2},{value:"Methods",id:"methods",level:2}];function p(e){const s={code:"code",h2:"h2",p:"p",pre:"pre",strong:"strong",...(0,a.R)(),...e.components};return(0,o.jsxs)(i.NE,{name:"CCTMXLayer",namespace:"Cocos2D",children:[(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.strong,{children:"Inheritance:"})," System.Object \u2192 Cocos2D.CCNode \u2192 Cocos2D.CCSpriteBatchNode"]}),(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.strong,{children:"Implements:"})," Cocos2D.ICCSelectorProtocol, Cocos2D.ICCFocusable, Cocos2D.ICCTargetedTouchDelegate, Cocos2D.ICCStandardTouchDelegate, Cocos2D.ICCTouchDelegate, Cocos2D.ICCKeypadDelegate, Cocos2D.ICCKeyboardDelegate, Cocos2D.ICCRGBAProtocol, System.Collections.Generic.IComparer{Cocos2D.CCNode}, Cocos2D.ICCTextureProtocol, Cocos2D.ICCBlendProtocol"]}),(0,o.jsx)(s.h2,{id:"constructors",children:"Constructors"}),(0,o.jsx)(i.KX,{name:"CCTMXLayer(CCTMXTilesetInfo, CCTMXLayerInfo, CCTMXMapInfo)",signature:"CCTMXLayer(CCTMXTilesetInfo, CCTMXLayerInfo, CCTMXMapInfo)(Cocos2D.CCTMXTilesetInfo tilesetInfo, Cocos2D.CCTMXLayerInfo layerInfo, Cocos2D.CCTMXMapInfo mapInfo)",children:(0,o.jsxs)(i.Rd,{children:[(0,o.jsx)(i.k0,{name:"tilesetInfo",type:"Cocos2D.CCTMXTilesetInfo"}),(0,o.jsx)(i.k0,{name:"layerInfo",type:"Cocos2D.CCTMXLayerInfo"}),(0,o.jsx)(i.k0,{name:"mapInfo",type:"Cocos2D.CCTMXMapInfo"})]})}),(0,o.jsx)(s.h2,{id:"fields",children:"Fields"}),(0,o.jsx)(i.Ms,{name:"m_bUseAutomaticVertexZ",type:"System.Boolean"}),(0,o.jsx)(i.Ms,{name:"m_cOpacity",type:"System.Byte"}),(0,o.jsx)(i.Ms,{name:"m_fAlphaFuncValue",type:"System.Single"}),(0,o.jsx)(i.Ms,{name:"m_fContentScaleFactor",type:"System.Single"}),(0,o.jsx)(i.Ms,{name:"m_nVertexZvalue",type:"System.Int32"}),(0,o.jsx)(i.Ms,{name:"m_pAtlasIndexArray",type:"System.Collections.Generic.ListSystem.Int32"}),(0,o.jsx)(i.Ms,{name:"m_pReusedTile",type:"Cocos2D.CCSprite"}),(0,o.jsx)(i.Ms,{name:"m_sLayerName",type:"System.String"}),(0,o.jsx)(i.Ms,{name:"m_uMaxGID",type:"System.UInt32"}),(0,o.jsx)(i.Ms,{name:"m_uMinGID",type:"System.UInt32"}),(0,o.jsx)(s.h2,{id:"properties",children:"Properties"}),(0,o.jsx)(i.Ms,{name:"LayerName",type:"System.String"}),(0,o.jsx)(i.Ms,{name:"LayerOrientation",type:"Cocos2D.CCTMXOrientation"}),(0,o.jsx)(i.Ms,{name:"LayerSize",type:"Cocos2D.CCSize"}),(0,o.jsx)(i.Ms,{name:"MapTileSize",type:"Cocos2D.CCSize"}),(0,o.jsx)(i.Ms,{name:"Properties",type:"System.Collections.Generic.DictionarySystem.String,System.String"}),(0,o.jsx)(i.Ms,{name:"TileSet",type:"Cocos2D.CCTMXTilesetInfo"}),(0,o.jsx)(i.Ms,{name:"Tiles",type:"System.UInt32[]"}),(0,o.jsx)(s.h2,{id:"methods",children:"Methods"}),(0,o.jsxs)(i.KX,{name:"AddChild(CCNode, int, int)",signature:"AddChild(CCNode, int, int)(Cocos2D.CCNode child, System.Int32 zOrder, System.Int32 tag)",children:[(0,o.jsxs)(i.Rd,{children:[(0,o.jsx)(i.k0,{name:"child",type:"Cocos2D.CCNode"}),(0,o.jsx)(i.k0,{name:"zOrder",type:"System.Int32"}),(0,o.jsx)(i.k0,{name:"tag",type:"System.Int32"})]}),(0,o.jsx)(i.N5,{children:(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-csharp"})})})]}),(0,o.jsx)(i.KX,{name:"Draw()",signature:"Draw()()",children:(0,o.jsx)(i.N5,{children:(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-csharp"})})})}),(0,o.jsxs)(i.KX,{name:"InitWithTilesetInfo(CCTMXTilesetInfo, CCTMXLayerInfo, CCTMXMapInfo)",signature:"System.Boolean InitWithTilesetInfo(CCTMXTilesetInfo, CCTMXLayerInfo, CCTMXMapInfo)(Cocos2D.CCTMXTilesetInfo tilesetInfo, Cocos2D.CCTMXLayerInfo layerInfo, Cocos2D.CCTMXMapInfo mapInfo)",children:[(0,o.jsxs)(i.Rd,{children:[(0,o.jsx)(i.k0,{name:"tilesetInfo",type:"Cocos2D.CCTMXTilesetInfo"}),(0,o.jsx)(i.k0,{name:"layerInfo",type:"Cocos2D.CCTMXLayerInfo"}),(0,o.jsx)(i.k0,{name:"mapInfo",type:"Cocos2D.CCTMXMapInfo"})]}),(0,o.jsx)(i.Mq,{type:"System.Boolean"})]}),(0,o.jsxs)(i.KX,{name:"PositionAt(CCPoint)",signature:"Cocos2D.CCPoint PositionAt(CCPoint)(Cocos2D.CCPoint pos)",children:[(0,o.jsx)(i.Rd,{children:(0,o.jsx)(i.k0,{name:"pos",type:"Cocos2D.CCPoint"})}
1),(0,o.jsx)(i.Mq,{type:"Cocos2D.CCPoint"})]}),(0,o.jsxs)(i.KX,{name:"PropertyNamed(string)",signature:"System.String PropertyNamed(string)(System.String propertyName)",children:[(0,o.jsx)(i.Rd,{children:(0,o.jsx)(i.k0,{name:"propertyName",type:"System.String"})}),(0,o.jsx)(i.Mq,{type:"System.String"})]}),(0,o.jsx)(i.KX,{name:"ReleaseMap()",signature:"ReleaseMap()()"}),(0,o.jsxs)(i.KX,{name:"RemoveChild(CCNode, bool)",signature:"RemoveChild(CCNode, bool)(Cocos2D.CCNode node, System.Boolean cleanup)",children:[(0,o.jsxs)(i.Rd,{children:[(0,o.jsx)(i.k0,{name:"node",type:"Cocos2D.CCNode"}),(0,o.jsx)(i.k0,{name:"cleanup",type:"System.Boolean"})]}),(0,o.jsx)(i.N5,{children:(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-csharp"})})})]}),(0,o.jsx)(i.KX,{name:"RemoveTileAt(CCPoint)",signature:"RemoveTileAt(CCPoint)(Cocos2D.CCPoint pos)",children:(0,o.jsx)(i.Rd,{children:(0,o.jsx)(i.k0,{name:"pos",type:"Cocos2D.CCPoint"})})}),(0,o.jsx)(i.KX,{name:"SetTileGID(uint, CCPoint)",signature:"SetTileGID(uint, CCPoint)(System.UInt32 gid, Cocos2D.CCPoint pos)",children:(0,o.jsxs)(i.Rd,{children:[(0,o.jsx)(i.k0,{name:"gid",type:"System.UInt32"}),(0,o.jsx)(i.k0,{name:"pos",type:"Cocos2D.CCPoint"})]})}),(0,o.jsx)(i.KX,{name:"SetTileGID(uint, CCPoint, uint)",signature:"SetTileGID(uint, CCPoint, uint)(System.UInt32 gid, Cocos2D.CCPoint pos, System.UInt32 flags)",children:(0,o.jsxs)(i.Rd,{children:[(0,o.jsx)(i.k0,{name:"gid",type:"System.UInt32"}),(0,o.jsx)(i.k0,{name:"pos",type:"Cocos2D.CCPoint"}),(0,o.jsx)(i.k0,{name:"flags",type:"System.UInt32"})]})}),(0,o.jsx)(i.KX,{name:"SetupTiles()",signature:"SetupTiles()()"}),(0,o.jsxs)(i.KX,{name:"TileAt(CCPoint)",signature:"Cocos2D.CCSprite TileAt(CCPoint)(Cocos2D.CCPoint pos)",children:[(0,o.jsx)(i.Rd,{children:(0,o.jsx)(i.k0,{name:"pos",type:"Cocos2D.CCPoint"})}),(0,o.jsx)(i.Mq,{type:"Cocos2D.CCSprite"})]}),(0,o.jsxs)(i.KX,{name:"TileGIDAt(CCPoint)",signature:"System.UInt32 TileGIDAt(CCPoint)(Cocos2D.CCPoint pos)",children:[(0,o.jsx)(i.Rd,{children:(0,o.jsx)(i.k0,{name:"pos",type:"Cocos2D.CCPoint"})}),(0,o.jsx)(i.Mq,{type:"System.UInt32"})]}),(0,o.jsxs)(i.KX,{name:"TileGIDAt(CCPoint, out uint)",signature:"System.UInt32 TileGIDAt(CCPoint, out uint)(Cocos2D.CCPoint pos, System.UInt32 flags)",children:[(0,o.jsxs)(i.Rd,{children:[(0,o.jsx)(i.k0,{name:"pos",type:"Cocos2D.CCPoint"}),(0,o.jsx)(i.k0,{name:"flags",type:"System.UInt32"})]}),(0,o.jsx)(i.Mq,{type:"System.UInt32"})]})]})}function d(e={}){const{wrapper:s}={...(0,a.R)(),...e.components};return s?(0,o.jsx)(s,{...e,children:(0,o.jsx)(p,{...e})}):p(e)}},75100(e,s,t){t(96540);var n=t(74848);t.d(s,["KX",0,({name:e,signature:s,description:t,children:o})=>(0,n.jsxs)("div",{className:"api-method",children:[(0,n.jsx)("h4",{className:"api-method-name",children:e}),s&&(0,n.jsx)("pre",{className:"api-signature",children:(0,n.jsx)("code",{children:s})}),t&&(0,n.jsx)("p",{className:"api-description",children:t}),o]}),"Mq",0,({type:e,description:s})=>(0,n.jsxs)("div",{className:"api-returns",children:[(0,n.jsx)("h6",{children:"Returns:"}),(0,n.jsxs)("div",{className:"api-returns-content",children:[e&&(0,n.jsx)("code",{className:"api-returns-type",children:e}),s&&(0,n.jsxs)("span",{className:"api-returns-description",children:[" - ",s]})]})]}),"Ms",0,({name:e,type:s,description:t,defaultValue:o})=>(0,n.jsxs)("div",{className:"api-property",children:[(0,n.jsxs)("div",{className:"api-property-header",children:[(0,n.jsx)("strong",{className:"api-property-name",children:e}),s&&(0,n.jsxs)("em",{className:"api-property-type",children:["(",s,")"]}),o&&(0,n.jsxs)("span",{className:"api-property-default",children:["= ",o]})]}),t&&(0,n.jsx)("p",{className:"api-property-description",children:t})]}),"N5",0,({title:e="Example",children:s})=>(0,n.jsxs)("div",{className:"api-example",children:[(0,n.jsx)("h5",{className:"api-example-title",children:e}),(0,n.jsx)("div",{className:"api-example-content",children:s})]}),"NE",0,({name:e,namespace:s,description:t,children:o})=>(0,n.jsxs)("div",{className:"api-class",children:[(0,n.jsxs)("div",{className:"api-class-header",children:[(0,n.jsx)("h2",{className:"api-class-name",children:e}),s&&(0,n.jsx)("span",{className:"api-class-namespace",children:s})]}),t&&(0,n.jsx)("p",{className:"api-class-description",children:t}),(0,n.jsx)("div",{className:"api-class-content",children:o})]}),"Rd",0,({children:e})=>(0,n.jsxs)("div",{className:"api-parameters",children:[(0,n.jsx)("h6",{children:"Parameters:"}),(0,n.jsx)("div",{className:"api-parameters-list",children:e})]}),"k0",0,({name:e,type:s,description:t,optional:o=!1})=>(0,n.jsxs)("div",{className:"api-parameter",children:[(0,n.jsxs)("code",{className:"api-parameter-name",children:[e,o&&"?"]}),s&&(0,n.jsxs)("em",{className:"api-parameter-type",children:[" (",s,")"]}),t&&(0,n.jsxs)("span",{className:"api-parameter-description",children:[" - ",t]})]})])},28453(e,s,t){t.d(s,{R:()=>i,x:()=>c});var n=t(96540);const o={},a=n.createContext(o);function i(e){const s=n.useContext(a);return n.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function c(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),n.createElement(a.Provider,{value:s},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.