23#import <Foundation/Foundation.h>
30NS_ASSUME_NONNULL_BEGIN
76 char templateMusicBar[kEditSequenceTemplateSlotCount][kEditSequenceTemplateMusicBarByteCount];
118- (nullable NSMutableArray<NSNumber *> *)getEventData;
126+ (void)getMusicBarData:(
char *)raw raw:(nullable NSData *)data;
134- (BOOL)checkEventsLegality:(nullable NSData *)data;
142- (void)createEvents:(nullable NSData *)data tempSlot:(
int)slot;
148- (void)refreshEditMusicBar;
154- (void)refreshMusicBar;
160- (void)refreshConflictTable;
167- (void)loadTemplate:(
int)slot;
173- (void)createConflictTable;
182- (BOOL)checkConflictEvent:(
int)index btn:(
unsigned int)btn;
191- (int)searchBtnNearSector:(
int)sector btn:(
int)btn;
199- (int)searchNearIndex:(
int)sector;
211- (int)checkConflictByIndex:(
int)index
212 btn:(
unsigned int)btn
215 sameCheck:(BOOL)sameCheck;
227- (int)checkConflictBySector:(
int)sector
228 btn:(
unsigned int)btn
231 sameCheck:(BOOL)sameCheck;
242- (BOOL)checkConflictBySector:(
int)sector
243 btn:(
unsigned int)btn
245 sameCheck:(BOOL)sameCheck;
256- (BOOL)checkConflictByIndex:(
int)index
257 btn:(
unsigned int)btn
259 sameCheck:(BOOL)sameCheck;
268- (BOOL)checkConflictArea:(
unsigned int)index vector:(
int)direction;
277- (BOOL)checkConflict:(
unsigned int)btn vector:(
int)direction;
285- (BOOL)checkKeyConflict:(
int)btn;
294- (BOOL)conflictKeyCheck:(
unsigned int)btn vector:(
int)direction;
301- (void)addHistory:(nullable NSArray *)parts;
309- (int)rollController:(BOOL)undo;
315@property(nonatomic, readonly) BOOL isClap;
340- (void)addHistoryParts:(nullable NSMutableArray *)parts
354- (int)addNote:(
unsigned int)btn divide:(
int)divide isSwitch:(BOOL)isSwitch;
362- (int)addNote:(
unsigned int)btn;
370- (BOOL)deleteNote:(
unsigned int)btn;
378- (float)getNearBeatRate:(
float)rate;
387- (int)getNearDiveBeatSector:(
int)sector divide:(
int)divide;
396- (float)getNearDivBeatRate:(
float)rate divide:(
int)divide;
404- (float)sector2rate:(
int)sector;
412- (
unsigned int)rate2sector:(
float)rate;
420- (int)getFrontBeatSector:(
int)sector;
428- (int)getBackBeatSector:(
int)sector;
435- (void)eventArrayDecode:(nullable NSArray<NSNumber *> *)table;
442- (void)importSequenceData:(nullable NSArray<NSNumber *> *)table;
451- (instancetype)initWithData:(nullable
KUnzip *)data
452 sequenceData:(nullable NSArray<NSNumber *> *)sequenceData;
465- (void)seekToTime:(
double)time;
472- (void)getMarkerState:(
int *)state;
479- (const
char *)getMusicBar;
486- (const
char *)getConflictBar;
507- (
unsigned int)getEndSector;
514- (
unsigned int)getConflictSector;
521- (int)getRewindMeasureSector;
527@property(nonatomic, readonly)
float hakuPhase;
533@property(nonatomic, readonly)
float measurePhase;
539@property(nonatomic, readonly)
float playPosition;
547- (int)searchSectorIndex:(
int)sector;
556- (BOOL)exeAreaCopy:(
int)startSec endSec:(
int)endSec;
564- (void)exeAreaDelete:(
int)startSec endSec:(
int)endSec;
572- (int)exeAreaPaste:(
int)startSec;
580- (
unsigned int)getTemplateNoteNum:(
int)slot;
587- (
unsigned int)getNoteNum;
594- (
unsigned int)getEventNum;
601- (
unsigned int)getFirstMarker;
608- (
unsigned int)getFirstSector;
615- (void)printInfoParts:(nullable NSString *)info;
623- (void)eventShift:(
int)srcIndex destIndex:(
int)destIndex;
629@property(nonatomic, readonly)
double currentTime;
635@property(nonatomic, readonly)
unsigned int currentSector;
641@property(nonatomic, readonly)
unsigned int currentIndex;
647@property(nonatomic, readonly)
unsigned short firstMarker;
653@property(nonatomic, readonly)
unsigned int firstMarkerSector;
659@property(nonatomic, readonly) BOOL enableUndo;
665@property(nonatomic, readonly) BOOL enableRedo;
@ kEditSequencePanelCount
The number of playfield panels (a 4x4 grid), sizing the per-panel judgement arrays.
Definition EditSequence.h:34
@ kEditSequenceMusicBarSegmentCount
The number of segments in the music bar; each note maps to one via its sector.
Definition EditSequence.h:46
@ kEditSequenceTemplateSlotCount
The number of template slots: an empty structural template plus three difficulty templates.
Definition EditSequence.h:40
@ kEditSequenceTemplateMusicBarByteCount
The per-template raw music-bar buffer length, in bytes (one segment per byte).
Definition EditSequence.h:58
@ kEditSequenceMusicBarByteCount
The length of the packed music-bar and conflict-bar bitmaps, in bytes (two segments per byte).
Definition EditSequence.h:52
The base gameplay renderer and driver for a single play session.
The core gameplay judgement engine for a single play session.
The chart-editor data model.
Definition EditSequence.h:65
char musicBar[kEditSequenceMusicBarByteCount]
The packed note-density music bar.
Definition EditSequence.h:91
unsigned int _currentSector
The current play position, in sectors.
Definition EditSequence.h:107
unsigned int oldTempo
The tempo in effect before the last change.
Definition EditSequence.h:86
char conflictTable[kEditSequenceMusicBarByteCount]
The packed conflict music bar.
Definition EditSequence.h:93
SequenceEvent * eventsTemplate[kEditSequenceTemplateSlotCount]
The four difficulty/structure templates, each a malloc'd 2000-entry event array.
Definition EditSequence.h:68
unsigned int lastJudgeSector[kEditSequencePanelCount]
The sector of that grade per panel.
Definition EditSequence.h:97
unsigned int templateNumEvent[kEditSequenceTemplateSlotCount]
The event count of each template slot.
Definition EditSequence.h:70
unsigned int templateEndSector[kEditSequenceTemplateSlotCount]
The end sector of each template slot.
Definition EditSequence.h:72
short lastJudge[kEditSequencePanelCount]
The most recent grade shown per panel.
Definition EditSequence.h:95
unsigned int currentTempo
The tempo in effect at the play position.
Definition EditSequence.h:85
SequenceEvent * events
The malloc'd working event array (2000 entries).
Definition EditSequence.h:77
int currentHistory
The cursor into editHistory ; -1 when empty.
Definition EditSequence.h:100
BOOL _enableRedo
Whether a redo is available.
Definition EditSequence.h:105
int clapIndex
The clap sound-effect scan cursor.
Definition EditSequence.h:101
unsigned int numPlayEvent
The scoring-note count parsed from the chart header.
Definition EditSequence.h:80
unsigned int numEvent
The number of events in events .
Definition EditSequence.h:79
char templateMusicBar[kEditSequenceTemplateSlotCount][kEditSequenceTemplateMusicBarByteCount]
The raw per-segment note-density music bar of each template slot.
Definition EditSequence.h:76
double _currentTime
The current play position, in seconds.
Definition EditSequence.h:110
SequenceEvent * copyEvents
The malloc'd area copy/paste clipboard (2000 entries).
Definition EditSequence.h:78
unsigned int judgedIndex
The judgement cursor over events .
Definition EditSequence.h:84
unsigned int _firstMarkerSector
The sector of the first marker.
Definition EditSequence.h:109
unsigned int numCopyEvent
The number of events in copyEvents .
Definition EditSequence.h:83
unsigned int nextHakuSector
The sector of the next beat (haku) line.
Definition EditSequence.h:88
unsigned int lastMeasureSector
The sector of the last measure line.
Definition EditSequence.h:89
unsigned int nextMeasureSector
The sector of the next measure line.
Definition EditSequence.h:90
int backSector
The play position of the previous -seekToTime: frame.
Definition EditSequence.h:102
unsigned int endSector
The chart's final sector.
Definition EditSequence.h:81
unsigned int _currentIndex
The seek cursor over events .
Definition EditSequence.h:108
char editConflictTable[kEditSequenceMusicBarSegmentCount]
Per-segment conflict flags.
Definition EditSequence.h:94
BOOL _enableUndo
Whether an undo is available.
Definition EditSequence.h:104
unsigned int lastHakuSector
The sector of the last beat (haku) line.
Definition EditSequence.h:87
unsigned short _firstMarker
The panel bitmask of the first marker.
Definition EditSequence.h:106
unsigned int templateNotesNum[kEditSequenceTemplateSlotCount]
The note count of each template slot.
Definition EditSequence.h:74
BOOL bClapSE
Whether a clap sound effect should fire this frame.
Definition EditSequence.h:103
ScoreData gameScore
The live score summary, mirrored from the play engine.
Definition EditSequence.h:98
NSMutableArray * editHistory
The undo/redo history of boxed edit-part records.
Definition EditSequence.h:99
unsigned int notesNum
The number of note events in events .
Definition EditSequence.h:82
int editMusicBar[kEditSequenceMusicBarSegmentCount]
Per-segment note-density counts.
Definition EditSequence.h:92
Reads named entries out of one packed archive.
Definition KUnzip.h:22
A play session's cumulative score summary.
Definition MainGameRenderer.h:50
One note event of a chart.
Definition Sequence.h:90