yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_proposal_overlay.h File Reference
#include <cstdint>
#include <string>
#include <string_view>
#include <vector>
#include "absl/status/statusor.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yaze::editor::ProposalTile
 
struct  yaze::editor::ProposalShape
 
struct  yaze::editor::ProposalLayer
 
struct  yaze::editor::ProposalRoom
 
struct  yaze::editor::DungeonProposalOverlay
 
struct  yaze::editor::ProposalPixelRect
 

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 

Enumerations

enum class  yaze::editor::ProposalShapeType { yaze::editor::kRect , yaze::editor::kPath , yaze::editor::kMarker , yaze::editor::kRemove }
 

Functions

absl::StatusOr< DungeonProposalOverlay > yaze::editor::ParseDungeonProposalOverlay (std::string_view json_text, int max_room_id)
 
absl::StatusOr< uint32_t > yaze::editor::ParseProposalColor (std::string_view text)
 
ProposalPixelRect yaze::editor::ProposalTileRectToPixels (ProposalTile a, ProposalTile b)
 
void yaze::editor::ProposalTileCenter (ProposalTile tile, float *x, float *y)
 
float yaze::editor::ProposalRoomOriginX (int index, float gap_pixels)
 
float yaze::editor::ProposalDistanceToSegment (float px, float py, float ax, float ay, float bx, float by)
 
bool yaze::editor::ProposalShapeHitTest (const ProposalShape &shape, float px, float py, float tolerance)
 

Variables

constexpr int yaze::editor::kProposalOverlayVersion = 1
 
constexpr std::string_view yaze::editor::kProposalOverlayFormat
 
constexpr int yaze::editor::kProposalRoomTiles = 64
 
constexpr int yaze::editor::kProposalTilePixels = 8
 
constexpr int yaze::editor::kProposalDefaultMaxRoomId = 0x127