tk2dRuntime.TileMap.Layer.Init C# (CSharp) Method

Init() public method

public Init ( int hash, int width, int height, int divX, int divY ) : void
hash int
width int
height int
divX int
divY int
return void
			chunk.spriteIds[offset] = spriteId;
			chunk.Dirty = true;
		}
		
		public int GetTile(int x, int y)
		{
			int offset;
			var chunk = FindChunkAndCoordinate(x, y, out offset);
			if (chunk.spriteIds == null || chunk.spriteIds.Length == 0)
				return -1;
			return chunk.spriteIds[offset];
		}
		
		void CreateChunk(SpriteChunk chunk)