Skip to main content
Version: 0.2.1

Interface IWukongLocalApi

Namespace: WukongMp.Sdk.Api
Assembly: WukongMp.Sdk.dll

Provides various utility methods not related to networking.

public interface IWukongLocalApi

Properties​

IsGameplayLevel​

Is the game currently in a gameplay level, as opposed to a menu or the like?

bool IsGameplayLevel { get; }

Property Value​

bool

Methods​

HideInfoMessage()​

Hides the message currently being shown on the player's screen, if any.

void HideInfoMessage()

ShowInfoMessage(string)​

Shows a message on the player's screen.

void ShowInfoMessage(string message)

Parameters​

message string

The message to show.

ShowInfoMessage(string, float)​

Shows a message on the player's screen for a certain amount of time.

void ShowInfoMessage(string message, float timeoutSeconds)

Parameters​

message string

The message to show.

timeoutSeconds float

The amount of time, in seconds, to show the message for.

ShowTip(string, bool)​

Shows a tip message on the player's screen using the game's UI.

void ShowTip(string message, bool autoHide)

Parameters​

message string

The message to show.

autoHide bool

Whether the message should automatically hide after 5 seconds

Wait(Task)​

Waits for the given task to complete in a synchronous manner.

void Wait(Task task)

Parameters​

task Task

The task to wait for.

  • Properties
    • IsGameplayLevel
  • Methods
    • HideInfoMessage()
    • ShowInfoMessage(string)
    • ShowInfoMessage(string, float)
    • ShowTip(string, bool)
    • Wait(Task)