yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::project Namespace Reference

Namespaces

namespace  anonymous_namespace{project.cc}
 

Classes

struct  AtlasSettings
 Atlas map views ([atlas]). More...
 
struct  DungeonOverlaySettings
 Dungeon overlay configuration (per-project). More...
 
struct  GraphicsSheetSettings
 Project rules for graphics sheets ([graphics_sheets]). More...
 
struct  PlanningSettings
 Planning editor sidecar ([planning]). More...
 
struct  ProjectFilePassthrough
 Lines of a .yaze file that this build does not model. More...
 
class  ProjectManager
 Enhanced project management with templates and validation. More...
 
struct  ProjectMetadata
 Enhanced metadata for project tracking. More...
 
class  RecentFilesManager
 
struct  ResourceLabelManager
 
struct  RomMetadata
 
struct  SpriteAssetBinding
 
struct  SpriteBehavior
 
struct  SpriteBehaviorAction
 
struct  SpritePaletteBinding
 
struct  WorkspaceSettings
 Consolidated workspace and UI settings. More...
 
struct  YazeProject
 Modern project structure with comprehensive settings consolidation. More...
 
struct  Z3dkArtifactPaths
 
struct  Z3dkMemoryRange
 
struct  Z3dkSettings
 

Enumerations

enum class  ProjectFormat { kYazeNative , kZScreamCompat }
 Supported project file formats. More...
 
enum class  RomRole { kBase , kDev , kPatched , kRelease }
 
enum class  RomWritePolicy { kAllow , kWarn , kBlock }
 

Functions

absl::Status WriteProjectFileAtomically (absl::string_view target_path, absl::string_view contents, bool replace_existing)
 
std::string RomRoleToString (RomRole role)
 
RomRole ParseRomRole (absl::string_view value)
 
std::string RomWritePolicyToString (RomWritePolicy policy)
 
RomWritePolicy ParseRomWritePolicy (absl::string_view value)
 
bool IsKnownProjectFileSection (absl::string_view name)
 
nlohmann::json SpriteAssetToJson (const SpriteAssetBinding &asset)
 
absl::StatusOr< SpriteAssetBinding > SpriteAssetFromJson (const nlohmann::json &value)
 
absl::StatusOr< SpriteAssetBinding > ParseSpriteAssetBinding (const std::string &text)
 
nlohmann::json SpriteBehaviorToJson (const SpriteBehavior &behavior)
 
absl::StatusOr< SpriteBehavior > SpriteBehaviorFromJson (const nlohmann::json &json)
 

Variables

const std::string kRecentFilesFilename = "recent_files.txt"
 

Enumeration Type Documentation

◆ ProjectFormat

enum class yaze::project::ProjectFormat
strong

Supported project file formats.

Enumerator
kYazeNative 
kZScreamCompat 

Definition at line 28 of file project.h.

◆ RomRole

enum class yaze::project::RomRole
strong
Enumerator
kBase 
kDev 
kPatched 
kRelease 

Definition at line 219 of file project.h.

◆ RomWritePolicy

enum class yaze::project::RomWritePolicy
strong
Enumerator
kAllow 
kWarn 
kBlock 

Definition at line 220 of file project.h.

Function Documentation

◆ WriteProjectFileAtomically()

absl::Status yaze::project::WriteProjectFileAtomically ( absl::string_view target_path,
absl::string_view contents,
bool replace_existing )

◆ RomRoleToString()

std::string yaze::project::RomRoleToString ( RomRole role)

◆ ParseRomRole()

RomRole yaze::project::ParseRomRole ( absl::string_view value)

Definition at line 410 of file project.cc.

References kBase, kDev, kPatched, and kRelease.

Referenced by yaze::project::YazeProject::ParseFromString().

◆ RomWritePolicyToString()

std::string yaze::project::RomWritePolicyToString ( RomWritePolicy policy)

◆ ParseRomWritePolicy()

RomWritePolicy yaze::project::ParseRomWritePolicy ( absl::string_view value)

Definition at line 436 of file project.cc.

References kAllow, kBlock, and kWarn.

Referenced by yaze::project::YazeProject::ParseFromString().

◆ IsKnownProjectFileSection()

bool yaze::project::IsKnownProjectFileSection ( absl::string_view name)

Definition at line 991 of file project.cc.

◆ SpriteAssetToJson()

nlohmann::json yaze::project::SpriteAssetToJson ( const SpriteAssetBinding & asset)
inline

◆ SpriteAssetFromJson()

◆ ParseSpriteAssetBinding()

absl::StatusOr< SpriteAssetBinding > yaze::project::ParseSpriteAssetBinding ( const std::string & text)
inline

Definition at line 97 of file sprite_asset_json.h.

References ParseSpriteAssetBinding(), and SpriteAssetFromJson().

Referenced by yaze::project::YazeProject::ParseFromString(), and ParseSpriteAssetBinding().

Here is the call graph for this function:

◆ SpriteBehaviorToJson()

nlohmann::json yaze::project::SpriteBehaviorToJson ( const SpriteBehavior & behavior)
inline

◆ SpriteBehaviorFromJson()

Variable Documentation

◆ kRecentFilesFilename

const std::string yaze::project::kRecentFilesFilename = "recent_files.txt"