1#ifndef YAZE_APP_EDITOR_DUNGEON_DUNGEON_PROPOSAL_OVERLAY_H_
2#define YAZE_APP_EDITOR_DUNGEON_DUNGEON_PROPOSAL_OVERLAY_H_
9#include "absl/status/statusor.h"
21 "yaze-dungeon-proposal-overlay";
42 std::vector<ProposalTile>
tiles;
64 std::vector<ProposalRoom>
rooms;
Editors are the view controllers for the application.
float ProposalRoomOriginX(int index, float gap_pixels)
absl::StatusOr< DungeonProposalOverlay > ParseDungeonProposalOverlay(std::string_view json_text, int max_room_id)
ProposalPixelRect ProposalTileRectToPixels(ProposalTile a, ProposalTile b)
constexpr int kProposalDefaultMaxRoomId
constexpr int kProposalOverlayVersion
absl::StatusOr< uint32_t > ParseProposalColor(std::string_view text)
void ProposalTileCenter(ProposalTile tile, float *x, float *y)
constexpr std::string_view kProposalOverlayFormat
constexpr int kProposalRoomTiles
constexpr int kProposalTilePixels
float ProposalDistanceToSegment(float px, float py, float ax, float ay, float bx, float by)
bool ProposalShapeHitTest(const ProposalShape &shape, float px, float py, float tolerance)
std::vector< ProposalRoom > rooms
std::vector< std::string > notes
std::vector< ProposalLayer > layers
std::vector< ProposalShape > shapes
bool operator==(const ProposalPixelRect &) const =default
std::vector< ProposalTile > tiles
bool operator==(const ProposalTile &) const =default