Porytiles
Loading...
Searching...
No Matches
porytiles::AttributeDeclarationScan Struct Reference

struct Tileset's metatileAttributes declaration, as the project wrote it. More...

#include <metatile_attribute_inference.hpp>

Collaboration diagram for porytiles::AttributeDeclarationScan:
[legend]

Public Attributes

AttributeDeclarationSource source {AttributeDeclarationSource::no_fieldmap_header}
 
std::string element_type
 
std::size_t pointer_depth {0}
 
bool is_const {false}
 

Detailed Description

struct Tileset's metatileAttributes declaration, as the project wrote it.

The declarator fields carry meaning only when source is declared. element_type is the pointed-to type spelling (u16 on pokeemerald, u32 on pokefirered, anything at all on a project that renamed it), pointer_depth is the number of stars on the declarator, and is_const records a const-qualified pointee. Together they reconstruct the declaration for a diagnostic without the scanner having to judge it.

Definition at line 88 of file metatile_attribute_inference.hpp.

Member Data Documentation

◆ element_type

std::string porytiles::AttributeDeclarationScan::element_type

Definition at line 90 of file metatile_attribute_inference.hpp.

◆ is_const

bool porytiles::AttributeDeclarationScan::is_const {false}

Definition at line 92 of file metatile_attribute_inference.hpp.

◆ pointer_depth

std::size_t porytiles::AttributeDeclarationScan::pointer_depth {0}

Definition at line 91 of file metatile_attribute_inference.hpp.

◆ source

AttributeDeclarationSource porytiles::AttributeDeclarationScan::source {AttributeDeclarationSource::no_fieldmap_header}

Definition at line 89 of file metatile_attribute_inference.hpp.


The documentation for this struct was generated from the following file: