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 int

amount int

currency string

callback NEShopBuyCallback

CreateWallet()

Creates a new wallet and returns the generated seed phrase.

string CreateWallet()

Returns

string

GetAddress()

Gets the player's wallet address.

string GetAddress()

Returns

string

GetAuthToken()

Gets the current authentication token.

string GetAuthToken()

Returns

string

GetGameProfile()

Gets the player's game profile.

NEGameProfile GetGameProfile()

Returns

NEGameProfile

GetProvider()

Gets the current authentication provider.

string GetProvider()

Returns

string

Initialize(NEInitCallback)

Initializes the GDK

void Initialize(NEInitCallback callback)

Parameters

callback NEInitCallback

IsLoggedIn()

Returns whether the player is currently logged in.

bool IsLoggedIn()

Returns

bool

IsLoginCacheExpired()

Checks if login cache has expired or is missing.

bool IsLoginCacheExpired()

Returns

bool

LoginWithApple(NELoginCallback)

Logs in using Apple authentication.

void LoginWithApple(NELoginCallback callback)

Parameters

callback NELoginCallback

LoginWithEmail(NELoginCallback)

Logs in using Email authentication.

void LoginWithEmail(NELoginCallback callback)

Parameters

callback NELoginCallback

LoginWithFacebook(NELoginCallback)

Logs in using Facebook authentication.

void LoginWithFacebook(NELoginCallback callback)

Parameters

callback NELoginCallback

LoginWithGoogle(NELoginCallback)

Logs in using Google authentication.

void LoginWithGoogle(NELoginCallback callback)

Parameters

callback NELoginCallback

LoginWithPhrase(string, NELoginCallback)

Logs in using a seed phrase.

void LoginWithPhrase(string phrase, NELoginCallback callback)

Parameters

phrase string

callback NELoginCallback

LoginWithProvider(string, NELoginCallback)

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

void LoginWithProvider(string provider, NELoginCallback callback)

Parameters

provider string

callback NELoginCallback

LoginWithTelegram(NELoginCallback)

Logs in using Telegram authentication.

void LoginWithTelegram(NELoginCallback callback)

Parameters

callback NELoginCallback

Logout()

Logs the user out of the system.

void Logout()

RequestGameProfile(NEGameProfileCallback)

Requests the player's game profile from the server.

void RequestGameProfile(NEGameProfileCallback callback)

Parameters

callback NEGameProfileCallback

RequestShopInfo(NEShopInfoCallback)

Requests available shop packs.

void RequestShopInfo(NEShopInfoCallback callback)

Parameters

callback NEShopInfoCallback

RequestUserBalances(NEUserBalanceCallback)

Requests the player's balances from the server.

void RequestUserBalances(NEUserBalanceCallback callback)

Parameters

callback NEUserBalanceCallback

RequestUserPets(NEUserPetCallback)

Requests the player's pet collection from the server.

void RequestUserPets(NEUserPetCallback callback)

Parameters

callback NEUserPetCallback

Last updated