-
Notifications
You must be signed in to change notification settings - Fork 1
/
SongManager.lua
173 lines (133 loc) · 5.2 KB
/
SongManager.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
---@meta
---@class SongManager
SONGMAN = {}
--- Returns `true` if the specified course group exists.
function SONGMAN:DoesCourseGroupExist(sGroup) end
--- Returns `true` if the specified song group exists.
function SONGMAN:DoesSongGroupExist(sGroup) end
--- Returns a Course if one matching `sCourse` is found.
function SONGMAN:FindCourse(sCourse) end
--- Returns a Song if one matching `sSong` is found.
function SONGMAN:FindSong(sSong) end
--- Returns an array of all the installed courses.
function SONGMAN:GetAllCourses(bIncludeAutogen) end
--- Returns an array of all the installed songs.
function SONGMAN:GetAllSongs() end
--- Returns the course color of Course `c`.
---@param c Course
---@return RageColor
function SONGMAN:GetCourseColor(c) end
--- Returns the path to the specified course group's banner.
---@param sGroup string
---@return string
function SONGMAN:GetCourseGroupBannerPath(sGroup) end
--- Returns a table containing all of the course group names.
---@return string[]
function SONGMAN:GetCourseGroupNames() end
--- Returns a table with all of the courses in the specified group.
---@param sGroup string
---@param bIncludeAutogen boolean
---@return Course[]
function SONGMAN:GetCoursesInGroup(sGroup, bIncludeAutogen) end
--- Returns the extra stage info (Song, Steps) for the specified Style `s`. (If `bExtra2` is true, it will use the second Extra Stage data instead of the first. Again, Lua.xsd sucks)
---@param bExtra2 boolean
---@param s Style
---@return SongObject, Steps
function SONGMAN:GetExtraStageInfo(bExtra2, s) end
--- Returns the number of courses loaded via Additional folders.
---@return integer
function SONGMAN:GetNumAdditionalCourses() end
--- Returns the number of songs loaded via Additional folders.
---@return integer
function SONGMAN:GetNumAdditionalSongs() end
--- Returns the number of course groups.
---@return integer
function SONGMAN:GetNumCourseGroups() end
--- Returns the number of courses.
---@return integer
function SONGMAN:GetNumCourses() end
--- Returns the number of selectable and unlocked songs.
---@return integer
function SONGMAN:GetNumSelectableAndUnlockedSongs() end
--- Returns the number of song groups.
---@return integer
function SONGMAN:GetNumSongGroups() end
--- Returns the number of songs.
---@return integer
function SONGMAN:GetNumSongs() end
--- Returns the number of locked songs, regardless of reason for locking.
---@return integer
function SONGMAN:GetNumLockedSongs() end
--- Returns the number of unlocked songs.
---@return integer
function SONGMAN:GetNumUnlockedSongs() end
--- Returns a table of popular courses for the specified CourseType.
---@param ct CourseType
---@return Course[]
function SONGMAN:GetPopularCourses(ct) end
--- Returns a table of popular songs.
---@return SongObject[]
function SONGMAN:GetPopularSongs() end
--- Returns a table of courses as they'd appear in preferred sort.
---@param ct CourseType
---@param bIncludeAutogen boolean
---@return Course[]
function SONGMAN:GetPreferredSortCourses(ct, bIncludeAutogen) end
--- Returns a table of songs as they'd appear in preferred sort.
---@return SongObject[]
function SONGMAN:GetPreferredSortSongs() end
--- Returns a random course.
---@return Course
function SONGMAN:GetRandomCourse() end
--- Returns a random song.
---@return SongObject
function SONGMAN:GetRandomSong() end
--- Returns the song color of Song `s`.
---@param s SongObject
---@return RageColor
function SONGMAN:GetSongColor(s) end
--- Returns a Song given a set of Steps `st`.
---@param st Steps
---@return SongObject
function SONGMAN:GetSongFromSteps(st) end
--- Returns the path to the specified song group's banner.
---@param sGroup string
---@return string
function SONGMAN:GetSongGroupBannerPath(sGroup) end
--- Returns the song group color of `sGroupName`.
---@param sGroupName string
---@return RageColor
function SONGMAN:GetSongGroupColor(sGroupName) end
--- Returns a table containing all of the song group names.
---@return string[]
function SONGMAN:GetSongGroupNames() end
--- Returns the rank (popularity) of Song `s`.
---@param s SongObject
---@return integer
function SONGMAN:GetSongRank(s) end
--- Returns a table containing all of the songs in group `sGroupName`.
---@param sGroupName string
---@return SongObject[]
function SONGMAN:GetSongsInGroup(sGroupName) end
--- Returns the shortened group name (based on entries in Translations.xml).
---@param sGroupName string
---@return string
function SONGMAN:ShortenGroupName(sGroupName) end
--- Loads preferred courses from `{theme}/Other/SongManager sListName.txt`.
---@param sListName string
function SONGMAN:SetPreferredCourses(sListName) end
--- Loads preferred songs from `{theme}/Other/SongManager sListName.txt`.
---@param sListName string
function SONGMAN:SetPreferredSongs(sListName) end
--- Returns the preferred sort section name for the specified Song.
---@param s SongObject
---@return string
function SONGMAN:SongToPreferredSortSectionName(s) end
--- Returns `true` if the specified course was loaded from AdditionalCourses.
---@param c Course
---@return boolean
function SONGMAN:WasLoadedFromAdditionalCourses(c) end
--- Returns `true` if the specified song was loaded from AdditionalSongs.
---@param s SongObject
---@return boolean
function SONGMAN:WasLoadedFromAdditionalSongs(s) end