Skip to content

PyClientApp Class

PyClientApp is part of the KBEngine module. It is a client object created by the C++ backend when simulating a client. It cannot be created directly in scripts.

Member Functions

def getSpaceData( key ):

def player( ):

Properties

id read-only Integer

entities Entities

Detailed Description

An instance of the Entity class represents a game object on the client.

An Entity can access its equivalent entity on the base and cell applications via ENTITYCALL. This requires a set of remote call functions (specified in the entity's .def file).

Member Function Documentation


def getSpaceData( key ):

Description:

Gets the space data for the specified key.
Space data is set by the user on the server via setSpaceData.

Parameters:

key: string, a string key.

Returns:

string, the string data for the specified key.


def player( ):

Description:

Gets the entity currently controlled by the client.

Property Documentation


entities

Description:

entities is a dictionary object containing all entities on the current process.

Type:

Entities

文档内容由 Comblock® 提供