Skip to content

Commit

Permalink
WIP achievement stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssaruth committed Oct 16, 2024
1 parent a2dadb1 commit 75edc46
Show file tree
Hide file tree
Showing 15 changed files with 68 additions and 384 deletions.
238 changes: 0 additions & 238 deletions client/src/main/java/bean/ButtonColumn.java

This file was deleted.

84 changes: 0 additions & 84 deletions client/src/main/java/object/OnlineUsername.java

This file was deleted.

48 changes: 0 additions & 48 deletions client/src/main/java/object/ProgressBar.java

This file was deleted.

3 changes: 2 additions & 1 deletion client/src/main/kotlin/http/SessionApi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ import screen.ScreenCache
import util.ClientGlobals
import util.DialogUtilNew
import util.OnlineConstants
import util.getAchievementCount

class SessionApi(private val httpClient: HttpClient) {
fun beginSession(name: String) {
val response =
httpClient.doCall<BeginSessionResponse>(
HttpMethod.POST,
Routes.BEGIN_SESSION,
BeginSessionRequest(name),
BeginSessionRequest(name, getAchievementCount()),
)

when (response) {
Expand Down
5 changes: 5 additions & 0 deletions client/src/main/kotlin/util/AchievementUtil.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package util

import screen.ScreenCache

fun getAchievementCount() = ScreenCache.getAchievementsDialog().achievementsEarned
Loading

0 comments on commit 75edc46

Please sign in to comment.