yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
resource_context_builder.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_SERVICE_RESOURCE_CONTEXT_BUILDER_H_
2#define YAZE_CLI_SERVICE_RESOURCE_CONTEXT_BUILDER_H_
3
4#include <map>
5#include <string>
6
7#include "absl/status/statusor.h"
8#include "app/rom.h"
9
10namespace yaze {
11namespace cli {
12
27 public:
28 explicit ResourceContextBuilder(Rom* rom) : rom_(rom) {}
29
56 absl::StatusOr<std::string> BuildResourceContext();
57
64 absl::StatusOr<std::map<std::string, std::string>> GetLabels(
65 const std::string& category);
66
75 absl::StatusOr<std::string> ExportToJson();
76
77 private:
79
90 std::string ExtractOverworldLabels();
91
102 std::string ExtractDungeonLabels();
103
114 std::string ExtractEntranceLabels();
115
126 std::string ExtractRoomLabels();
127
138 std::string ExtractSpriteLabels();
139
156 std::string GetCommonTile16Reference();
157};
158
159} // namespace cli
160} // namespace yaze
161
162#endif // YAZE_CLI_SERVICE_RESOURCE_CONTEXT_BUILDER_H_
163
The Rom class is used to load, save, and modify Rom data.
Definition rom.h:71
Builds contextual information from ROM resources for AI prompts.
std::string ExtractSpriteLabels()
Extract sprite labels.
absl::StatusOr< std::string > ExportToJson()
Export all labels to JSON format.
std::string GetCommonTile16Reference()
Add common tile16 reference for AI.
std::string ExtractDungeonLabels()
Extract dungeon labels.
std::string ExtractRoomLabels()
Extract room labels.
absl::StatusOr< std::string > BuildResourceContext()
Build a complete resource context string for AI prompts.
std::string ExtractOverworldLabels()
Extract overworld map labels.
absl::StatusOr< std::map< std::string, std::string > > GetLabels(const std::string &category)
Get labels for a specific resource category.
std::string ExtractEntranceLabels()
Extract entrance labels.
Main namespace for the application.