AdamsLair/duality

Default-Initialize new AutoTile Items in Tilesets

開放

#732 建立於 2019年7月8日

 (3 則留言) (0 個反應) (0 位負責人)C# (287 個分叉)auto 404
EditorGood First IssueHelp WantedNice2HaveTilemapsUsability

倉庫指標

星標
 (1,425 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Summary

Right now, every AutoTile in a Tileset has to be configured manually, even if its AutoTiles are laid out regularly in a grid. When creating a new AutoTile, it could copy and offset the previous items config to avoid repetitive work.

Analysis

  • Determine the previous AutoTile's position and size on the Tileset in tiles, offset by its own size to determine the new AutoTile's rect.
  • The offset should work left-to-right, with line breaks where the end is reached.
  • Within the rect, copy IsAutoTile and Neighbours from the previous tile to the new one.
  • AutoTileTilesetEditorMode.AddLayer is probably a good place to start integrating this.

貢獻者指南