-
Notifications
You must be signed in to change notification settings - Fork 6
global_data
The global_data struct is used to store data that persists between scenes.
int songs_playedCounts the number of songs played since opening the game. This resets when reaching the config.
Config* configThis is the way to access the config options; this is initialized at main() runtime.
std::vector<int> hit_soundThis contains a vector of hitsound indexes per player.
std::vector<Modifiers> modifiersThis contains a vector of modifier options per player. Here are the supported modifiers:
-
auto_play: whether the chart plays automatically -
speed: stored as an integer. Changes the speed of the chart -
bool: whether the notes are displayed (doron) -
inverse: change the color of the notes (abekobe) -
random: randomize the color of the notes-
0: None -
1: 25% randomization rate (Kimagure) -
2: 50% randomization rate (Detarame)
-
-
subdiff: Sets the sub difficulty used for AI Battle and Enso Battle.
std::vector<SessionData> session_data = std::vector<SessionData>(3)This contains a vector of session data information per player. In this case, a session is the time between song select, and the results screen. Here is what is stored in session data:
-
fs::path selected_songthe path to the song loaded in the gameplay -
std::string song_hashthe hash for the song loaded in the gameplay -
std::vector<DanSongEntry>the songs loaded in a dan course (dan mode only) -
std::vector<Exam> selected_dan_examthe exam conditions for a dan course (dan mode only) -
int dan_colorthe color of the dan plate (dan mode only) -
int selected_difficultythe difficulty of the song loaded in gameplay -
std::string song_titlethe string displayed as a title during transition between song select and gameplay -
std::string song_subtitlethe string displayed as a subtitle during transition between song select and gameplay -
int genre_indexthe index of the genre displayed in the song info during gameplay -
ResultData result_datathe information transferred between gameplay and result -
DanResultData dan_result_datathe information transferred between dan gameplay and dan result
void reset_session();Resets the modifiers and session data.
Building
libs
- animation
- audio
- config
- filesystem
- global_data
- input
- logging
- ray
- scores
- screen
- script
- song_parser
- text
- texture
- video
- webcam
libs/parsers
objects
objects/game
- player
- background
- gauge
- judgment
- combo
- branch_indicator
- ending_animations
- gogo_time
- fireworks
- song_info
- transition
- result_transition
- judge_counter
- score_counter
- score_counter_animation
- balloon_counter
- drumroll_counter
- kusudama_counter
- drum_hit_effect
- lane_hit_effect
- gauge_hit_effect
- combo_announce
- note_arc
objects/global
objects/title
objects/entry
objects/settings
objects/result
objects/song_select
- player
- navigator
- box_base
- box_song
- box_folder
- neiro
- modifier
- ura_switch
- diff_sort
- search_box
- dan_transition
- genre_bg
- score_history
- song_select_script
scenes