Skip to content

Add set of properties to doc::UserData #3631

@dacap

Description

@dacap

Related to #3625

Add a set of sets of typed-properties (including points) to doc::UserData depending on extension ID (empty ID are user-defined properties, just like the current user data field).
Something like

std::map<std::string, std::map<std::string, std::any>> m_properties;

or

std::map<std::string, std::map<std::string, Variant>> m_properties;

?
Where Variant = std::variant<bool, int, std::string, gfx::Point, etc….> (these types will be limited to the .aseprite format, and probably will not be possible to extend it after the initial set of types)

Metadata

Metadata

Assignees

Labels

featureFeature request, or something should be improvedmaintenance

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions