NinetyEight.INEGdk

Interface INEGdk

Namespace: NinetyEight Assembly: APIReference.dll

Interface for the Game Development Kit (GDK). Provides login, profile management, balance, and shop functionality.

public interface INEGdk

Methods

BuyShopPack(int, int, string, NEShopBuyCallback)

Attempts to buy a shop pack.

void BuyShopPack(int packId, int amount, string currency, NEShopBuyCallback callback)

Parameters

packId intarrow-up-right

amount intarrow-up-right

currency stringarrow-up-right

callback NEShopBuyCallback

CreateWallet()

Creates a new wallet and returns the generated seed phrase.

Returns

stringarrow-up-right

GetAddress()

Gets the player's wallet address.

Returns

stringarrow-up-right

GetAuthToken()

Gets the current authentication token.

Returns

stringarrow-up-right

GetGameProfile()

Gets the player's game profile.

Returns

NEGameProfile

GetProvider()

Gets the current authentication provider.

Returns

stringarrow-up-right

Initialize(NEInitCallback)

Initializes the GDK

Parameters

callback NEInitCallback

IsLoggedIn()

Returns whether the player is currently logged in.

Returns

boolarrow-up-right

IsLoginCacheExpired()

Checks if login cache has expired or is missing.

Returns

boolarrow-up-right

LoginWithApple(NELoginCallback)

Logs in using Apple authentication.

Parameters

callback NELoginCallback

LoginWithEmail(NELoginCallback)

Logs in using Email authentication.

Parameters

callback NELoginCallback

LoginWithFacebook(NELoginCallback)

Logs in using Facebook authentication.

Parameters

callback NELoginCallback

LoginWithGoogle(NELoginCallback)

Logs in using Google authentication.

Parameters

callback NELoginCallback

LoginWithPhrase(string, NELoginCallback)

Logs in using a seed phrase.

Parameters

phrase stringarrow-up-right

callback NELoginCallback

LoginWithProvider(string, NELoginCallback)

Logs in using a specific provider (e.g., Google, Facebook).

Parameters

provider stringarrow-up-right

callback NELoginCallback

LoginWithTelegram(NELoginCallback)

Logs in using Telegram authentication.

Parameters

callback NELoginCallback

Logout()

Logs the user out of the system.

RequestGameProfile(NEGameProfileCallback)

Requests the player's game profile from the server.

Parameters

callback NEGameProfileCallback

RequestShopInfo(NEShopInfoCallback)

Requests available shop packs.

Parameters

callback NEShopInfoCallback

RequestUserBalances(NEUserBalanceCallback)

Requests the player's balances from the server.

Parameters

callback NEUserBalanceCallback

RequestUserPets(NEUserPetCallback)

Requests the player's pet collection from the server.

Parameters

callback NEUserPetCallback

Last updated