yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
YazeIOSBridge.h
Go to the documentation of this file.
1#import <Foundation/Foundation.h>
2
3NS_ASSUME_NONNULL_BEGIN
4
6typedef struct {
8 uint8_t game_state;
9 uint8_t oosprog;
10 uint8_t oosprog2;
11 uint8_t side_quest;
12 uint8_t pendants;
15
16typedef struct {
18 const char *name;
19 const char *type;
21
22@interface YazeIOSBridge : NSObject
23
24// ─── Core ────────────────────────────────────────
25+ (void)loadRomAtPath:(NSString *)path NS_SWIFT_NAME(loadRom(atPath:));
26+ (void)openProjectAtPath:(NSString *)path NS_SWIFT_NAME(openProject(atPath:));
27+ (NSString *)currentRomTitle NS_SWIFT_NAME(currentRomTitle());
28+ (void)setOverlayTopInset:(double)inset NS_SWIFT_NAME(setOverlayTopInset(_:));
29+ (void)setTouchScale:(double)scale NS_SWIFT_NAME(setTouchScale(_:));
30+ (void)showProjectFileEditor NS_SWIFT_NAME(showProjectFileEditor());
31+ (void)showProjectManagement NS_SWIFT_NAME(showProjectManagement());
32+ (void)showPanelBrowser NS_SWIFT_NAME(showPanelBrowser());
33+ (void)showCommandPalette NS_SWIFT_NAME(showCommandPalette());
34
35// ─── Editor Actions ─────────────────────────────
36+ (void)saveRom NS_SWIFT_NAME(saveRom());
37+ (void)undo NS_SWIFT_NAME(undo());
38+ (void)redo NS_SWIFT_NAME(redo());
39+ (void)switchToEditor:(NSString *)editorName NS_SWIFT_NAME(switchToEditor(_:));
40+ (NSArray<NSString *> *)availableEditorTypes NS_SWIFT_NAME(availableEditorTypes());
41
42// ─── Editor Status ──────────────────────────────
43+ (nullable NSString *)currentEditorType NS_SWIFT_NAME(currentEditorType());
44+ (nullable NSString *)currentRoomStatus NS_SWIFT_NAME(currentRoomStatus());
45+ (NSArray<NSDictionary *> *)getActiveDungeonRooms
46 NS_SWIFT_NAME(getActiveDungeonRooms());
47+ (void)focusDungeonRoom:(NSInteger)roomID NS_SWIFT_NAME(focusDungeonRoom(_:));
48
49// ─── Oracle Integration ──────────────────────────
51+ (OracleProgressionData)getProgressionState NS_SWIFT_NAME(getProgressionState());
52
54+ (nullable NSString *)getStoryEventsJSON NS_SWIFT_NAME(getStoryEventsJSON());
55
57+ (NSArray<NSDictionary *> *)getDungeonRooms:(NSString *)dungeonId
58 NS_SWIFT_NAME(getDungeonRooms(_:));
59
60@end
61
62NS_ASSUME_NONNULL_END
currentRomTitle( NS_SWIFT_NAME()
Interop structs for passing data from C++ to Swift.
const char * name
std::string switchToEditor(std::string editor_name)