67 std::map<std::pair<std::string, int>, std::vector<std::string>> rawMap;
69 auto operator[](
const std::pair<std::string, int>& p)
70 -> std::vector<std::string>&
73 return rawMap.operator[](std::make_pair(std::string(
""), 0));
76 return rawMap.operator[](p);
89 void ReportSongOver();
92 void ReportReplayInput(
bool isPress,
101 void ReportReplayMiss(
int col,
107 void ReportReplayHold(
int col,
int row,
int subType);
110 void ReportReplayMine(
int row,
int col);
113 void ReportV2Data(
int col,
int row,
float offset,
int tapNoteType);
115 void OnMusicSelect();
116 void OffMusicSelect();
125 void StartRequest(
short position);
127 auto GetServerName()
const -> std::string;
129 void CreateNewRoom(std::string name,
130 std::string desc =
"",
131 std::string password =
"");
133 void EnterRoom(std::string name, std::string password =
"");
135 std::string GetRoomName();
137 void PostStartUp(
const std::string& ServerIP);
139 auto IsETTP() -> bool;
141 void CloseConnection();
145 void DisplayStartupStatus()
const;
147 void Update(
float fDeltaTime);
149 bool need_to_disconnect =
false;
153 std::string loggedInUsername;
154 std::string loginResponse;
159 std::vector<int> m_PlayerStatus;
161 std::vector<int> m_ActivePlayer;
162 std::vector<std::string> m_PlayerNames;
163 std::vector<bool> m_PlayerReady;
164 std::vector<std::string> commonpacks;
167 std::vector<EndOfGame_PlayerData> m_EvalPlayerData;
169 std::set<std::string> lobbyuserlist;
171 void SendMPLeaderboardUpdate(
float wife, std::string& jdgstr);
175 void SendChat(
const std::string& message,
176 std::string tab =
"",
181 std::string m_sMainTitle;
182 std::string m_sArtist;
183 std::string m_sSubTitle;
184 std::string m_sFileHash;
185 std::string chartkey;
186 Song* song{
nullptr };
187 Steps* steps{
nullptr };
188 std::map<std::string, GameplayScore> mpleaderboard;
189 void PushMPLeaderboard(lua_State* L);
190 Difficulty difficulty;
196 void SelectUserSong();
198 std::string m_sChatText;
201 NSMANStartupStatus m_startupStatus;
203 void Login(std::string user, std::string pass);
205 auto GetServerVersion() -> int;
207 std::vector<RoomData> m_Rooms;
208 std::vector<ChartRequest*> requests;
209 std::vector<ChartRequest*> staleRequests;
211 bool spectating =
false;
212 std::string spectatingWho{};
215 void PushSelf(lua_State* L);
219 bool ShouldSendMessage(
bool requiresLogin =
false)
const;