From b0f71c097631f6f9d595865c48f1ffd1990e8794 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 5 Jan 2025 00:14:45 +0500 Subject: feat: established communication between game and server --- core/src/kz/ilotterytea/maxon/MaxonGame.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/src/kz/ilotterytea/maxon/MaxonGame.java') diff --git a/core/src/kz/ilotterytea/maxon/MaxonGame.java b/core/src/kz/ilotterytea/maxon/MaxonGame.java index 8986de9..7381b6d 100644 --- a/core/src/kz/ilotterytea/maxon/MaxonGame.java +++ b/core/src/kz/ilotterytea/maxon/MaxonGame.java @@ -9,6 +9,7 @@ import kz.ilotterytea.maxon.localization.LocalizationManager; import kz.ilotterytea.maxon.pets.PetManager; import kz.ilotterytea.maxon.screens.SplashScreen; import kz.ilotterytea.maxon.session.IdentityClient; +import kz.ilotterytea.maxon.session.SessionClient; import kz.ilotterytea.maxon.utils.GameUpdater; public class MaxonGame extends Game { @@ -20,7 +21,9 @@ public class MaxonGame extends Game { private PetManager petManager; private DiscordActivityClient discordActivityClient; + private IdentityClient identityClient; + private SessionClient sessionClient; private static MaxonGame instance; @@ -43,6 +46,10 @@ public class MaxonGame extends Game { return identityClient; } + public SessionClient getSessionClient() { + return sessionClient; + } + public LocalizationManager getLocale() { return locale; } @@ -57,6 +64,8 @@ public class MaxonGame extends Game { new GameUpdater().checkLatestUpdate(); identityClient = new IdentityClient(Gdx.app.getPreferences("kz.ilotterytea.SigninIdentity")); + sessionClient = new SessionClient(); + batch = new SpriteBatch(); prefs = Gdx.app.getPreferences(MaxonConstants.GAME_APP_PACKAGE); locale = new LocalizationManager(Gdx.files.internal("i18n/" + prefs.getString("lang", "en_us") + ".json")); -- cgit v1.2.3