Skip to main content

GamiumClient

Provides the ability to interact with the Gamium Engine. Gamium Client can communicate with game builds with Gamium Engine SDK. The Gamium Client sends the specified message and the Gamium Engine SDK that receives the message performs the logic corresponding to the message.

The Gamium Client can be used as follows.

Usage
from gamium import *

service = TcpGamiumService("127.0.0.1", 50061)
gamium = GamiumClient(service)
gamium.connect()

Methods

actions

public

Create an ActionChain. You can check how to use it in Control Game.

Usage
gamium.actions().click(Vector2(0, 0)).move(Vector2(0, 0)).perform()
Return

execute_rpc

public

You can call a specific function within the game. You can check the usage in Remote Procedure Call.

Usage
gamium.execute_rpc(
RpcBy.method('Gamium.Private.CodebaseSample', 'CallParam1', 10),
)
gamium.execute_rpc(RpcBy.method('Namespace', 'FunctionName', params))
Arguments
Return

find

public

Locate the object through Locator.

Usage
object = gamium.find(By.path('Object path'))
Arguments
Return

finds

public

Locate the object through Locator. Returns all objects that match the specified Object path.

Usage
objects = gamium.finds(By.path('Object path'))

A GamiumError of the code ObjectNotFound will occur if the specified object is not found.

Arguments
Return

player

public

Locate the object through Locator. Returns the object by considering the object as Player. This object allows you to manipulate Player.

Usage
player = gamium.player(By.path('Object path'))
Arguments
Return

profile

public

Collect performance indicators within the game. Returns the performance indicators collected at the time requested by Game.

Return
  • QueryProfileResultT

screen

public

Get the screen information for the Game.

Usage
screen = gamium.screen()
Return
  • QueryScreenResultT

send_key

public

Enter the key that corresponds to KeyBy. You can check how to use it in Control Game.

Usage
gamium.send_key(KeyBy.unity_keycode('E'))
Arguments
Return

send_keys

public

Enter the key corresponding to the KeyBy array at the same time. You can check how to use it in Control Game.

Usage
gamium.send_keys([KeyBy.unity_keycode('W'), KeyBy.unity_keycode('D')])
Arguments
Return

try_wait

public
Arguments
Return
  • TryResult[T]

ui

public

Create UI object. UI Object makes it easy to manipulate UI objects.

Usage
ui = gamium.ui();
Return

wait

public

Wait until the conditions are satisfied. If the conditions are not met, a Timeout code is generated.

Usage
buttonInfo = gamium.wait(
Until.object_located(By.path('Object path')),
)
Arguments
Return