Go: Client¶
Functions¶
RegisterKey¶
| Go | |
|---|---|
RegisterKey binds keys on the client: fn runs with pressed true on press and false on release, and the current focus impact. Client hosts only; a server answers not provided.
- Parameters:
- name :
string - keyCodes :
[]int32 - allowRemap :
bool - fn :
func(pressed bool, impact int32)
- name :
- Return type:
(*KeyBinding, error) - Slots:
client_register_key
ClientProperty¶
| Go | |
|---|---|
ClientProperty reads one numeric client property by its PIER_CPROP_* key. The error covers a key this host does not know and a key about the local player read while the client is not in a world.
- Parameters:
- prop :
int32
- prop :
- Return type:
(float64, error)
ClientLocalPosition¶
| Go | |
|---|---|
ClientLocalPosition is the local player's feet position, x, y and z.
- Return type:
([3]float64, error)
ClientLocalRotation¶
| Go | |
|---|---|
ClientLocalRotation is the local player's pitch and yaw in degrees; a negative pitch looks up.
- Return type:
(pitch, yaw float64, err error)
ClientRegisteredKeys¶
| Go | |
|---|---|
ClientRegisteredKeys lists every key binding name the key registry holds, whichever mod registered it.
- Return type:
([]string, error)
ClientHasKey¶
| Go | |
|---|---|
ClientHasKey reports whether a key binding of this name is registered.
- Parameters:
- name :
string
- name :
- Return type:
(bool, error)
ClientOptions¶
| Go | |
|---|---|
ClientOptions lists every client option as key and value, in the text form options.txt stores.
- Return type:
([]KeyValue, error) - Slots:
client_option_list
ClientOption¶
| Go | |
|---|---|
ClientOption reads one client option by its options.txt key, such as "gfx_field_of_view".
- Parameters:
- key :
string
- key :
- Return type:
(string, error)
SetClientOption¶
| Go | |
|---|---|
SetClientOption writes one client option from its options.txt text form. The engine keeps what it can parse and reports nothing, so a caller that needs to know reads the key back.
- Parameters:
- key :
string - value :
string
- key :
- Return type:
error
ClientIsInLevel¶
| Go | |
|---|---|
ClientIsInLevel reports whether the client is inside a level, which means a world is loaded.
- Return type:
(bool, error) - Slots:
client_is_in_level
ClientLocalPlayerName¶
| Go | |
|---|---|
ClientLocalPlayerName is the name of the local player. The host has no answer outside a level.
- Return type:
(string, error) - Slots:
client_get_local_player
ClientPosX¶
| Go | |
|---|---|
ClientPosX reads PIER_CPROP_POS_X: Actor::getFeetPos of the local player
- Return type:
(float64, error) - Slots:
client_get_num
ClientPosY¶
| Go | |
|---|---|
ClientPosY reads PIER_CPROP_POS_Y: feet height, the same point get_player_position reports
- Return type:
(float64, error) - Slots:
client_get_num
ClientPosZ¶
| Go | |
|---|---|
ClientPosZ reads PIER_CPROP_POS_Z: PIER_CPROP_POS_Z
- Return type:
(float64, error) - Slots:
client_get_num
ClientPitch¶
| Go | |
|---|---|
ClientPitch reads PIER_CPROP_PITCH: Actor::getRotation, degrees; negative looks up
- Return type:
(float64, error) - Slots:
client_get_num
ClientYaw¶
| Go | |
|---|---|
ClientYaw reads PIER_CPROP_YAW: Actor::getRotation, degrees
- Return type:
(float64, error) - Slots:
client_get_num
ClientDimension¶
| Go | |
|---|---|
ClientDimension reads PIER_CPROP_DIMENSION: Actor::getDimensionId of the local player
- Return type:
(float64, error) - Slots:
client_get_num
ClientGuiScale¶
| Go | |
|---|---|
ClientGuiScale reads PIER_CPROP_GUI_SCALE: IClientInstance::getGuiScale
- Return type:
(float64, error) - Slots:
client_get_num
ClientServerPingMs¶
| Go | |
|---|---|
ClientServerPingMs reads PIER_CPROP_SERVER_PING_MS: IClientInstance::getServerPingTime
- Return type:
(float64, error) - Slots:
client_get_num
ClientIsShowingMenu¶
| Go | |
|---|---|
ClientIsShowingMenu reads PIER_CPROP_IS_SHOWING_MENU: IClientInstance::isShowingMenu, 1 or 0
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsShowingPauseScreen¶
| Go | |
|---|---|
ClientIsShowingPauseScreen reads PIER_CPROP_IS_SHOWING_PAUSE_SCREEN: IClientInstance::isShowingPauseScreen
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsPlaying¶
| Go | |
|---|---|
ClientIsPlaying reads PIER_CPROP_IS_PLAYING: IClientInstance::isPlaying
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsInRealm¶
| Go | |
|---|---|
ClientIsInRealm reads PIER_CPROP_IS_IN_REALM: IClientInstance::isInRealm
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsGameInputEnabled¶
| Go | |
|---|---|
ClientIsGameInputEnabled reads PIER_CPROP_IS_GAME_INPUT_ENABLED: IClientInstance::isInGameInputEnabled
- Return type:
(bool, error) - Slots:
client_get_num
ClientHealth¶
| Go | |
|---|---|
ClientHealth reads PIER_CPROP_HEALTH: Actor::getHealth of the local player
- Return type:
(float64, error) - Slots:
client_get_num
ClientMaxHealth¶
| Go | |
|---|---|
ClientMaxHealth reads PIER_CPROP_MAX_HEALTH: Actor::getMaxHealth of the local player
- Return type:
(float64, error) - Slots:
client_get_num
ClientIsOnGround¶
| Go | |
|---|---|
ClientIsOnGround reads PIER_CPROP_IS_ON_GROUND: Actor::isOnGround of the local player
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsInWater¶
| Go | |
|---|---|
ClientIsInWater reads PIER_CPROP_IS_IN_WATER: Actor::isInWater of the local player
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsSneaking¶
| Go | |
|---|---|
ClientIsSneaking reads PIER_CPROP_IS_SNEAKING: Actor::isSneaking of the local player
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsSprinting¶
| Go | |
|---|---|
ClientIsSprinting reads PIER_CPROP_IS_SPRINTING: Actor::isSprinting of the local player
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsSwimming¶
| Go | |
|---|---|
ClientIsSwimming reads PIER_CPROP_IS_SWIMMING: Actor::isSwimming of the local player
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsOnFire¶
| Go | |
|---|---|
ClientIsOnFire reads PIER_CPROP_IS_ON_FIRE: Actor::isOnFire of the local player
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsFlying¶
| Go | |
|---|---|
ClientIsFlying reads PIER_CPROP_IS_FLYING: Player::isFlying of the local player
- Return type:
(bool, error) - Slots:
client_get_num
ClientGameType¶
| Go | |
|---|---|
ClientGameType reads PIER_CPROP_GAME_TYPE: Player::getPlayerGameType of the local player
- Return type:
(float64, error) - Slots:
client_get_num
ClientSelectedSlot¶
| Go | |
|---|---|
ClientSelectedSlot reads PIER_CPROP_SELECTED_SLOT: Player::getSelectedItemSlot of the local player
- Return type:
(float64, error) - Slots:
client_get_num
ClientVelX¶
| Go | |
|---|---|
ClientVelX reads PIER_CPROP_VEL_X: Actor::getPosDelta of the local player, blocks per tick
- Return type:
(float64, error) - Slots:
client_get_num
ClientVelY¶
| Go | |
|---|---|
ClientVelY reads PIER_CPROP_VEL_Y: Actor::getPosDelta, the vertical part
- Return type:
(float64, error) - Slots:
client_get_num
ClientVelZ¶
| Go | |
|---|---|
ClientVelZ reads PIER_CPROP_VEL_Z: Actor::getPosDelta, the z part
- Return type:
(float64, error) - Slots:
client_get_num
ClientXpNeededNextLevel¶
| Go | |
|---|---|
ClientXpNeededNextLevel reads PIER_CPROP_XP_NEEDED_NEXT_LEVEL: Player::getXpNeededForNextLevel of the local player
- Return type:
(float64, error) - Slots:
client_get_num
ClientIsLeavingGame¶
| Go | |
|---|---|
ClientIsLeavingGame reads PIER_CPROP_IS_LEAVING_GAME: IClientInstance::isLeavingGame
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsExitingLevel¶
| Go | |
|---|---|
ClientIsExitingLevel reads PIER_CPROP_IS_EXITING_LEVEL: IClientInstance::isExitingLevel
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsInBedScreen¶
| Go | |
|---|---|
ClientIsInBedScreen reads PIER_CPROP_IS_IN_BED_SCREEN: IClientInstance::isInBedScreen
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsInDeathScreen¶
| Go | |
|---|---|
ClientIsInDeathScreen reads PIER_CPROP_IS_IN_DEATH_SCREEN: IClientInstance::isInDeathScreen
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsShowingLoadingScreen¶
| Go | |
|---|---|
ClientIsShowingLoadingScreen reads PIER_CPROP_IS_SHOWING_LOADING_SCREEN: IClientInstance::isShowingLoadingScreen
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsShowingProgressScreen¶
| Go | |
|---|---|
ClientIsShowingProgressScreen reads PIER_CPROP_IS_SHOWING_PROGRESS_SCREEN: IClientInstance::isShowingProgressScreen
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsShowingWorldProgressScreen¶
| Go | |
|---|---|
ClientIsShowingWorldProgressScreen reads PIER_CPROP_IS_SHOWING_WORLD_PROGRESS_SCREEN: IClientInstance::isShowingWorldProgressScreen
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsShowingDeathScreen¶
| Go | |
|---|---|
ClientIsShowingDeathScreen reads PIER_CPROP_IS_SHOWING_DEATH_SCREEN: IClientInstance::isShowingDeathScreen
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsShowingServerForm¶
| Go | |
|---|---|
ClientIsShowingServerForm reads PIER_CPROP_IS_SHOWING_SERVER_FORM: IClientInstance::isShowingServerForm
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsInWorldWithoutMenu¶
| Go | |
|---|---|
ClientIsInWorldWithoutMenu reads PIER_CPROP_IS_IN_WORLD_WITHOUT_MENU: IClientInstance::isInWorldAndNotShowingAnyMenuScreens
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsWorldActive¶
| Go | |
|---|---|
ClientIsWorldActive reads PIER_CPROP_IS_WORLD_ACTIVE: IClientInstance::isWorldActive
- Return type:
(bool, error) - Slots:
client_get_num
ClientHasLevel¶
| Go | |
|---|---|
ClientHasLevel reads PIER_CPROP_HAS_LEVEL: IClientInstance::hasLevel
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsPreGame¶
| Go | |
|---|---|
ClientIsPreGame reads PIER_CPROP_IS_PRE_GAME: IClientInstance::isPreGame
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsInMultiplayerGame¶
| Go | |
|---|---|
ClientIsInMultiplayerGame reads PIER_CPROP_IS_IN_MULTIPLAYER_GAME: IClientInstance::isInMultiplayerGame
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsMultiplayerClient¶
| Go | |
|---|---|
ClientIsMultiplayerClient reads PIER_CPROP_IS_MULTIPLAYER_CLIENT: IClientInstance::isMultiPlayerClient
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsPrimaryLevelMultiplayer¶
| Go | |
|---|---|
ClientIsPrimaryLevelMultiplayer reads PIER_CPROP_IS_PRIMARY_LEVEL_MULTIPLAYER: IClientInstance::isPrimaryLevelMultiplayer
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsPrimaryLevelCrossPlatform¶
| Go | |
|---|---|
ClientIsPrimaryLevelCrossPlatform reads PIER_CPROP_IS_PRIMARY_LEVEL_CROSS_PLATFORM: IClientInstance::isPrimaryLevelCrossPlatformMultiplayer
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsKeyboardEnabled¶
| Go | |
|---|---|
ClientIsKeyboardEnabled reads PIER_CPROP_IS_KEYBOARD_ENABLED: IClientInstance::isKeyboardEnabled
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsUsingController¶
| Go | |
|---|---|
ClientIsUsingController reads PIER_CPROP_IS_USING_CONTROLLER: IClientInstance::useController
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsUsingTouchscreen¶
| Go | |
|---|---|
ClientIsUsingTouchscreen reads PIER_CPROP_IS_USING_TOUCHSCREEN: IClientInstance::useTouchscreen
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsMouseGrabbed¶
| Go | |
|---|---|
ClientIsMouseGrabbed reads PIER_CPROP_IS_MOUSE_GRABBED: IClientInstance::getMouseGrabbed
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsMouseAndKeyboard¶
| Go | |
|---|---|
ClientIsMouseAndKeyboard reads PIER_CPROP_IS_MOUSE_AND_KEYBOARD: IClientInstance::currentInputModeIsMouseAndKeyboard
- Return type:
(bool, error) - Slots:
client_get_num
ClientHasConnectedController¶
| Go | |
|---|---|
ClientHasConnectedController reads PIER_CPROP_HAS_CONNECTED_CONTROLLER: IClientInstance::hasConnectedController
- Return type:
(bool, error) - Slots:
client_get_num
ClientControllerId¶
| Go | |
|---|---|
ClientControllerId reads PIER_CPROP_CONTROLLER_ID: IClientInstance::getControllerId
- Return type:
(float64, error) - Slots:
client_get_num
ClientIsTouchGameplayAllowed¶
| Go | |
|---|---|
ClientIsTouchGameplayAllowed reads PIER_CPROP_IS_TOUCH_GAMEPLAY_ALLOWED: IClientInstance::isTouchGameplayAllowed
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsSplitScreenActive¶
| Go | |
|---|---|
ClientIsSplitScreenActive reads PIER_CPROP_IS_SPLIT_SCREEN_ACTIVE: IClientInstance::isSplitScreenActive
- Return type:
(bool, error) - Slots:
client_get_num
ClientSplitScreenCount¶
| Go | |
|---|---|
ClientSplitScreenCount reads PIER_CPROP_SPLIT_SCREEN_COUNT: IClientInstance::getSplitScreenCount
- Return type:
(float64, error) - Slots:
client_get_num
ClientGuiScaleOffset¶
| Go | |
|---|---|
ClientGuiScaleOffset reads PIER_CPROP_GUI_SCALE_OFFSET: IClientInstance::getGuiScaleOffset
- Return type:
(float64, error) - Slots:
client_get_num
ClientIsEduMode¶
| Go | |
|---|---|
ClientIsEduMode reads PIER_CPROP_IS_EDU_MODE: IClientInstance::isEduMode
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsInEditor¶
| Go | |
|---|---|
ClientIsInEditor reads PIER_CPROP_IS_IN_EDITOR: IClientInstance::isPlayerInEditor
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsReadyToRender¶
| Go | |
|---|---|
ClientIsReadyToRender reads PIER_CPROP_IS_READY_TO_RENDER: IClientInstance::isReadyToRender
- Return type:
(bool, error) - Slots:
client_get_num
ClientIsFullVanillaPackOnStack¶
| Go | |
|---|---|
ClientIsFullVanillaPackOnStack reads PIER_CPROP_IS_FULL_VANILLA_PACK_ON_STACK: IClientInstance::isFullVanillaPackOnStack
- Return type:
(bool, error) - Slots:
client_get_num
ClientServerConnectionTime¶
| Go | |
|---|---|
ClientServerConnectionTime reads PIER_CPROP_SERVER_CONNECTION_TIME: IClientInstance::getServerConnectionTime
- Return type:
(float64, error) - Slots:
client_get_num
ClientRemoteServerTimeMs¶
| Go | |
|---|---|
ClientRemoteServerTimeMs reads PIER_CPROP_REMOTE_SERVER_TIME_MS: IClientInstance::getRemoteServerTimeMs
- Return type:
(float64, error) - Slots:
client_get_num
ClientRemoteServerNetworkTimeMs¶
| Go | |
|---|---|
ClientRemoteServerNetworkTimeMs reads PIER_CPROP_REMOTE_SERVER_NETWORK_TIME_MS: IClientInstance::getRemoteServerNetworkTimeMs
- Return type:
(float64, error) - Slots:
client_get_num
ClientFrameAlpha¶
| Go | |
|---|---|
ClientFrameAlpha reads PIER_CPROP_FRAME_ALPHA: IClientInstance::getFrameAlpha, how far the frame is between two ticks
- Return type:
(float64, error) - Slots:
client_get_num
ClientGameUpdateSeconds¶
| Go | |
|---|---|
ClientGameUpdateSeconds reads PIER_CPROP_GAME_UPDATE_SECONDS: IClientInstance::getGameUpdateDurationInSeconds
- Return type:
(float64, error) - Slots:
client_get_num
ClientIsPrimaryClient¶
| Go | |
|---|---|
ClientIsPrimaryClient reads PIER_CPROP_IS_PRIMARY_CLIENT: IClientInstance::isPrimaryClient
- Return type:
(bool, error) - Slots:
client_get_num
ClientUserId¶
| Go | |
|---|---|
ClientUserId reads PIER_CPROP_USER_ID: IClientInstance::getUserId
- Return type:
(float64, error) - Slots:
client_get_num
ClientIsGameplayTipsEnabled¶
| Go | |
|---|---|
ClientIsGameplayTipsEnabled reads PIER_CPROP_IS_GAMEPLAY_TIPS_ENABLED: IClientInstance::isGamePlayTipsEnabled
- Return type:
(bool, error) - Slots:
client_get_num
ClientHasCommands¶
| Go | |
|---|---|
ClientHasCommands reads PIER_CPROP_HAS_COMMANDS: IClientInstance::hasCommands
- Return type:
(bool, error) - Slots:
client_get_num
ClientScreenName¶
| Go | |
|---|---|
ClientScreenName reads PIER_CSTR_SCREEN_NAME: IClientInstance::getScreenName, as client_get_screen_name
- Return type:
(string, error) - Slots:
client_get_str
ClientTopScreenName¶
| Go | |
|---|---|
ClientTopScreenName reads PIER_CSTR_TOP_SCREEN_NAME: IClientInstance::getTopScreenName
- Return type:
(string, error) - Slots:
client_get_str
ClientPlatformId¶
| Go | |
|---|---|
ClientPlatformId reads PIER_CSTR_PLATFORM_ID: IClientInstance::getPlatformId
- Return type:
(string, error) - Slots:
client_get_str
ClientPlatformOnlineId¶
| Go | |
|---|---|
ClientPlatformOnlineId reads PIER_CSTR_PLATFORM_ONLINE_ID: IClientInstance::getPlatformOnlineId
- Return type:
(string, error) - Slots:
client_get_str
ClientLocalXuid¶
| Go | |
|---|---|
ClientLocalXuid reads PIER_CSTR_LOCAL_XUID: Player::getXuid of the local player; fails outside a world
- Return type:
(string, error) - Slots:
client_get_str
ClientLocalUuid¶
| Go | |
|---|---|
ClientLocalUuid reads PIER_CSTR_LOCAL_UUID: Player::getUuid of the local player in its canonical form
- Return type:
(string, error) - Slots:
client_get_str
ClientLocalNameTag¶
| Go | |
|---|---|
ClientLocalNameTag reads PIER_CSTR_LOCAL_NAME_TAG: Actor::getNameTag of the local player
- Return type:
(string, error) - Slots:
client_get_str
ClientClipboard¶
| Go | |
|---|---|
ClientClipboard reads PIER_CSTR_CLIPBOARD: AppPlatform::getClipboardText, the system clipboard
- Return type:
(string, error) - Slots:
client_get_str
ClientShowMessage¶
| Go | |
|---|---|
ClientShowMessage runs PIER_CACT_SHOW_MESSAGE: sarg: text. GuiData::displayClientMessage
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientSetTitle¶
| Go | |
|---|---|
ClientSetTitle runs PIER_CACT_SET_TITLE: sarg: text. GuiData::setTitle is not exported by the client target.
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientSetSubtitle¶
| Go | |
|---|---|
ClientSetSubtitle runs PIER_CACT_SET_SUBTITLE: sarg: text. GuiData::setSubtitle is not exported by the client target.
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientSetActionBar¶
| Go | |
|---|---|
ClientSetActionBar runs PIER_CACT_SET_ACTION_BAR: sarg: text. GuiData::setActionBarMessage
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientShowTip¶
| Go | |
|---|---|
ClientShowTip runs PIER_CACT_SHOW_TIP: sarg: text. GuiData::showTipMessage is not exported by the client target.
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientPlayUiSound¶
| Go | |
|---|---|
ClientPlayUiSound runs PIER_CACT_PLAY_UI_SOUND: sarg: sound name, a: volume, b: pitch. IClientInstance::playUI
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientGrabMouse¶
| Go | |
|---|---|
ClientGrabMouse runs PIER_CACT_GRAB_MOUSE: IClientInstance::grabMouse
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientReleaseMouse¶
| Go | |
|---|---|
ClientReleaseMouse runs PIER_CACT_RELEASE_MOUSE: IClientInstance::releaseMouse
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientSetInputDisabled¶
| Go | |
|---|---|
ClientSetInputDisabled runs PIER_CACT_SET_INPUT_DISABLED: a: non-zero disables game input. IClientInstance::setDisableInput
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientLeaveLevel¶
| Go | |
|---|---|
ClientLeaveLevel runs PIER_CACT_LEAVE_LEVEL: IClientInstance::requestLeaveGame(true, false): leaves the world for the menus, asynchronously
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientShowPopup¶
| Go | |
|---|---|
ClientShowPopup runs PIER_CACT_SHOW_POPUP: sarg: message, optionally followed by subtitle after a newline. GuiData::showPopupNotice is not exported by the client target.
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientShowDevConsoleMessage¶
| Go | |
|---|---|
ClientShowDevConsoleMessage runs PIER_CACT_SHOW_DEV_CONSOLE_MESSAGE: sarg: text. GuiData::displayDevConsoleMessage is not exported by the client target.
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientSetSuspendInput¶
| Go | |
|---|---|
ClientSetSuspendInput runs PIER_CACT_SET_SUSPEND_INPUT: a: non-zero suspends input. IClientInstance::setSuspendInput
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientSetSuspendDirectionalInput¶
| Go | |
|---|---|
ClientSetSuspendDirectionalInput runs PIER_CACT_SET_SUSPEND_DIRECTIONAL_INPUT: a: non-zero suspends movement input. IClientInstance::setSuspendDirectionalInput
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientSetGameInputEnabled¶
| Go | |
|---|---|
ClientSetGameInputEnabled runs PIER_CACT_SET_GAME_INPUT_ENABLED: a: non-zero enables. IClientInstance::setInGameInputEnabled
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientRefocusMouse¶
| Go | |
|---|---|
ClientRefocusMouse runs PIER_CACT_REFOCUS_MOUSE: a: non-zero when the mouse was lost. IClientInstance::refocusMouse
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientMuteAudio¶
| Go | |
|---|---|
ClientMuteAudio runs PIER_CACT_MUTE_AUDIO: IClientInstance::muteAudio
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientUnmuteAudio¶
| Go | |
|---|---|
ClientUnmuteAudio runs PIER_CACT_UNMUTE_AUDIO: IClientInstance::unMuteAudio
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientFadeOutMusic¶
| Go | |
|---|---|
ClientFadeOutMusic runs PIER_CACT_FADE_OUT_MUSIC: IClientInstance::fadeOutMusic
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientSetGuiScaleOffset¶
| Go | |
|---|---|
ClientSetGuiScaleOffset runs PIER_CACT_SET_GUI_SCALE_OFFSET: a: the offset. IClientInstance::setGuiScaleOffset
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientResetPlayerMovement¶
| Go | |
|---|---|
ClientResetPlayerMovement runs PIER_CACT_RESET_PLAYER_MOVEMENT: IClientInstance::resetPlayerMovement
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientPushLeaveGameScreen¶
| Go | |
|---|---|
ClientPushLeaveGameScreen runs PIER_CACT_PUSH_LEAVE_GAME_SCREEN: IClientInstance::tryPushLeaveGameScreen
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientOpenContentLogHistory¶
| Go | |
|---|---|
ClientOpenContentLogHistory runs PIER_CACT_OPEN_CONTENT_LOG_HISTORY: IClientInstance::openContentLogHistory
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientSetClipboard¶
| Go | |
|---|---|
ClientSetClipboard runs PIER_CACT_SET_CLIPBOARD: sarg: text, empty allowed. AppPlatform::setClipboard
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
ClientNavigateHowToPlay¶
| Go | |
|---|---|
ClientNavigateHowToPlay runs PIER_CACT_NAVIGATE_HOW_TO_PLAY: sarg: the topic, empty allowed. IClientInstance::navigateToHowToPlayScreen
abi.h names each argument; an unused one is ignored.
- Parameters:
- sarg :
string - a :
float64 - b :
float64 - c :
float64
- sarg :
- Return type:
error - Slots:
client_action
KeyBinding¶
KeyBinding is a registered client key binding.
KeyBinding.Unregister¶
| Go | |
|---|---|
Unregister stops the binding's callbacks.
- Return type:
error - Slots:
client_unregister_key
KeyBinding.KeyCodes¶
| Go | |
|---|---|
KeyCodes lists the key codes now assigned to the binding, which differ from the defaults when the player remapped the key.
- Return type:
([]int32, error) - Slots:
client_get_key_codes
KeyHandle¶
KeyHandle is a registered client key binding.
KeyHandle.IsZero¶
| Go | |
|---|---|
IsZero reports whether the handle names nothing.
- Return type:
bool
CProp*¶
| Name | Value | Description |
|---|---|---|
CPropPosX |
0 |
CPropPosX is PIER_CPROP_POS_X: Actor::getFeetPos of the local player |
CPropPosY |
1 |
CPropPosY is PIER_CPROP_POS_Y: feet height, the same point get_player_position reports |
CPropPosZ |
2 |
CPropPosZ is PIER_CPROP_POS_Z: PIER_CPROP_POS_Z |
CPropPitch |
3 |
CPropPitch is PIER_CPROP_PITCH: Actor::getRotation, degrees; negative looks up |
CPropYaw |
4 |
CPropYaw is PIER_CPROP_YAW: Actor::getRotation, degrees |
CPropDimension |
5 |
CPropDimension is PIER_CPROP_DIMENSION: Actor::getDimensionId of the local player |
CPropGuiScale |
6 |
CPropGuiScale is PIER_CPROP_GUI_SCALE: IClientInstance::getGuiScale |
CPropServerPingMs |
7 |
CPropServerPingMs is PIER_CPROP_SERVER_PING_MS: IClientInstance::getServerPingTime |
CPropIsShowingMenu |
8 |
CPropIsShowingMenu is PIER_CPROP_IS_SHOWING_MENU: IClientInstance::isShowingMenu, 1 or 0 |
CPropIsShowingPauseScreen |
9 |
CPropIsShowingPauseScreen is PIER_CPROP_IS_SHOWING_PAUSE_SCREEN: IClientInstance::isShowingPauseScreen |
CPropIsPlaying |
10 |
CPropIsPlaying is PIER_CPROP_IS_PLAYING: IClientInstance::isPlaying |
CPropIsInRealm |
11 |
CPropIsInRealm is PIER_CPROP_IS_IN_REALM: IClientInstance::isInRealm |
CPropIsGameInputEnabled |
12 |
CPropIsGameInputEnabled is PIER_CPROP_IS_GAME_INPUT_ENABLED: IClientInstance::isInGameInputEnabled |
CPropHealth |
13 |
CPropHealth is PIER_CPROP_HEALTH: Actor::getHealth of the local player |
CPropMaxHealth |
14 |
CPropMaxHealth is PIER_CPROP_MAX_HEALTH: Actor::getMaxHealth of the local player |
CPropIsOnGround |
15 |
CPropIsOnGround is PIER_CPROP_IS_ON_GROUND: Actor::isOnGround of the local player |
CPropIsInWater |
16 |
CPropIsInWater is PIER_CPROP_IS_IN_WATER: Actor::isInWater of the local player |
CPropIsSneaking |
17 |
CPropIsSneaking is PIER_CPROP_IS_SNEAKING: Actor::isSneaking of the local player |
CPropIsSprinting |
18 |
CPropIsSprinting is PIER_CPROP_IS_SPRINTING: Actor::isSprinting of the local player |
CPropIsSwimming |
19 |
CPropIsSwimming is PIER_CPROP_IS_SWIMMING: Actor::isSwimming of the local player |
CPropIsOnFire |
20 |
CPropIsOnFire is PIER_CPROP_IS_ON_FIRE: Actor::isOnFire of the local player |
CPropIsFlying |
21 |
CPropIsFlying is PIER_CPROP_IS_FLYING: Player::isFlying of the local player |
CPropGameType |
22 |
CPropGameType is PIER_CPROP_GAME_TYPE: Player::getPlayerGameType of the local player |
CPropSelectedSlot |
23 |
CPropSelectedSlot is PIER_CPROP_SELECTED_SLOT: Player::getSelectedItemSlot of the local player |
CPropVelX |
24 |
CPropVelX is PIER_CPROP_VEL_X: Actor::getPosDelta of the local player, blocks per tick |
CPropVelY |
25 |
CPropVelY is PIER_CPROP_VEL_Y: Actor::getPosDelta, the vertical part |
CPropVelZ |
26 |
CPropVelZ is PIER_CPROP_VEL_Z: Actor::getPosDelta, the z part |
CPropXpNeededNextLevel |
27 |
CPropXpNeededNextLevel is PIER_CPROP_XP_NEEDED_NEXT_LEVEL: Player::getXpNeededForNextLevel of the local player |
CPropIsLeavingGame |
28 |
CPropIsLeavingGame is PIER_CPROP_IS_LEAVING_GAME: IClientInstance::isLeavingGame |
CPropIsExitingLevel |
29 |
CPropIsExitingLevel is PIER_CPROP_IS_EXITING_LEVEL: IClientInstance::isExitingLevel |
CPropIsInBedScreen |
30 |
CPropIsInBedScreen is PIER_CPROP_IS_IN_BED_SCREEN: IClientInstance::isInBedScreen |
CPropIsInDeathScreen |
31 |
CPropIsInDeathScreen is PIER_CPROP_IS_IN_DEATH_SCREEN: IClientInstance::isInDeathScreen |
CPropIsShowingLoadingScreen |
32 |
CPropIsShowingLoadingScreen is PIER_CPROP_IS_SHOWING_LOADING_SCREEN: IClientInstance::isShowingLoadingScreen |
CPropIsShowingProgressScreen |
33 |
CPropIsShowingProgressScreen is PIER_CPROP_IS_SHOWING_PROGRESS_SCREEN: IClientInstance::isShowingProgressScreen |
CPropIsShowingWorldProgressScreen |
34 |
CPropIsShowingWorldProgressScreen is PIER_CPROP_IS_SHOWING_WORLD_PROGRESS_SCREEN: IClientInstance::isShowingWorldProgressScreen |
CPropIsShowingDeathScreen |
35 |
CPropIsShowingDeathScreen is PIER_CPROP_IS_SHOWING_DEATH_SCREEN: IClientInstance::isShowingDeathScreen |
CPropIsShowingServerForm |
36 |
CPropIsShowingServerForm is PIER_CPROP_IS_SHOWING_SERVER_FORM: IClientInstance::isShowingServerForm |
CPropIsInWorldWithoutMenu |
37 |
CPropIsInWorldWithoutMenu is PIER_CPROP_IS_IN_WORLD_WITHOUT_MENU: IClientInstance::isInWorldAndNotShowingAnyMenuScreens |
CPropIsWorldActive |
38 |
CPropIsWorldActive is PIER_CPROP_IS_WORLD_ACTIVE: IClientInstance::isWorldActive |
CPropHasLevel |
39 |
CPropHasLevel is PIER_CPROP_HAS_LEVEL: IClientInstance::hasLevel |
CPropIsPreGame |
40 |
CPropIsPreGame is PIER_CPROP_IS_PRE_GAME: IClientInstance::isPreGame |
CPropIsInMultiplayerGame |
41 |
CPropIsInMultiplayerGame is PIER_CPROP_IS_IN_MULTIPLAYER_GAME: IClientInstance::isInMultiplayerGame |
CPropIsMultiplayerClient |
42 |
CPropIsMultiplayerClient is PIER_CPROP_IS_MULTIPLAYER_CLIENT: IClientInstance::isMultiPlayerClient |
CPropIsPrimaryLevelMultiplayer |
43 |
CPropIsPrimaryLevelMultiplayer is PIER_CPROP_IS_PRIMARY_LEVEL_MULTIPLAYER: IClientInstance::isPrimaryLevelMultiplayer |
CPropIsPrimaryLevelCrossPlatform |
44 |
CPropIsPrimaryLevelCrossPlatform is PIER_CPROP_IS_PRIMARY_LEVEL_CROSS_PLATFORM: IClientInstance::isPrimaryLevelCrossPlatformMultiplayer |
CPropIsKeyboardEnabled |
45 |
CPropIsKeyboardEnabled is PIER_CPROP_IS_KEYBOARD_ENABLED: IClientInstance::isKeyboardEnabled |
CPropIsUsingController |
46 |
CPropIsUsingController is PIER_CPROP_IS_USING_CONTROLLER: IClientInstance::useController |
CPropIsUsingTouchscreen |
47 |
CPropIsUsingTouchscreen is PIER_CPROP_IS_USING_TOUCHSCREEN: IClientInstance::useTouchscreen |
CPropIsMouseGrabbed |
48 |
CPropIsMouseGrabbed is PIER_CPROP_IS_MOUSE_GRABBED: IClientInstance::getMouseGrabbed |
CPropIsMouseAndKeyboard |
49 |
CPropIsMouseAndKeyboard is PIER_CPROP_IS_MOUSE_AND_KEYBOARD: IClientInstance::currentInputModeIsMouseAndKeyboard |
CPropHasConnectedController |
50 |
CPropHasConnectedController is PIER_CPROP_HAS_CONNECTED_CONTROLLER: IClientInstance::hasConnectedController |
CPropControllerId |
51 |
CPropControllerId is PIER_CPROP_CONTROLLER_ID: IClientInstance::getControllerId |
CPropIsTouchGameplayAllowed |
52 |
CPropIsTouchGameplayAllowed is PIER_CPROP_IS_TOUCH_GAMEPLAY_ALLOWED: IClientInstance::isTouchGameplayAllowed |
CPropIsSplitScreenActive |
53 |
CPropIsSplitScreenActive is PIER_CPROP_IS_SPLIT_SCREEN_ACTIVE: IClientInstance::isSplitScreenActive |
CPropSplitScreenCount |
54 |
CPropSplitScreenCount is PIER_CPROP_SPLIT_SCREEN_COUNT: IClientInstance::getSplitScreenCount |
CPropGuiScaleOffset |
55 |
CPropGuiScaleOffset is PIER_CPROP_GUI_SCALE_OFFSET: IClientInstance::getGuiScaleOffset |
CPropIsEduMode |
56 |
CPropIsEduMode is PIER_CPROP_IS_EDU_MODE: IClientInstance::isEduMode |
CPropIsInEditor |
57 |
CPropIsInEditor is PIER_CPROP_IS_IN_EDITOR: IClientInstance::isPlayerInEditor |
CPropIsReadyToRender |
58 |
CPropIsReadyToRender is PIER_CPROP_IS_READY_TO_RENDER: IClientInstance::isReadyToRender |
CPropIsFullVanillaPackOnStack |
59 |
CPropIsFullVanillaPackOnStack is PIER_CPROP_IS_FULL_VANILLA_PACK_ON_STACK: IClientInstance::isFullVanillaPackOnStack |
CPropServerConnectionTime |
60 |
CPropServerConnectionTime is PIER_CPROP_SERVER_CONNECTION_TIME: IClientInstance::getServerConnectionTime |
CPropRemoteServerTimeMs |
61 |
CPropRemoteServerTimeMs is PIER_CPROP_REMOTE_SERVER_TIME_MS: IClientInstance::getRemoteServerTimeMs |
CPropRemoteServerNetworkTimeMs |
62 |
CPropRemoteServerNetworkTimeMs is PIER_CPROP_REMOTE_SERVER_NETWORK_TIME_MS: IClientInstance::getRemoteServerNetworkTimeMs |
CPropFrameAlpha |
63 |
CPropFrameAlpha is PIER_CPROP_FRAME_ALPHA: IClientInstance::getFrameAlpha, how far the frame is between two ticks |
CPropGameUpdateSeconds |
64 |
CPropGameUpdateSeconds is PIER_CPROP_GAME_UPDATE_SECONDS: IClientInstance::getGameUpdateDurationInSeconds |
CPropIsPrimaryClient |
65 |
CPropIsPrimaryClient is PIER_CPROP_IS_PRIMARY_CLIENT: IClientInstance::isPrimaryClient |
CPropUserId |
66 |
CPropUserId is PIER_CPROP_USER_ID: IClientInstance::getUserId |
CPropIsGameplayTipsEnabled |
67 |
CPropIsGameplayTipsEnabled is PIER_CPROP_IS_GAMEPLAY_TIPS_ENABLED: IClientInstance::isGamePlayTipsEnabled |
CPropHasCommands |
68 |
CPropHasCommands is PIER_CPROP_HAS_COMMANDS: IClientInstance::hasCommands |
CStr*¶
| Name | Value | Description |
|---|---|---|
CStrScreenName |
0 |
CStrScreenName is PIER_CSTR_SCREEN_NAME: IClientInstance::getScreenName, as client_get_screen_name |
CStrTopScreenName |
1 |
CStrTopScreenName is PIER_CSTR_TOP_SCREEN_NAME: IClientInstance::getTopScreenName |
CStrPlatformId |
2 |
CStrPlatformId is PIER_CSTR_PLATFORM_ID: IClientInstance::getPlatformId |
CStrPlatformOnlineId |
3 |
CStrPlatformOnlineId is PIER_CSTR_PLATFORM_ONLINE_ID: IClientInstance::getPlatformOnlineId |
CStrLocalXuid |
4 |
CStrLocalXuid is PIER_CSTR_LOCAL_XUID: Player::getXuid of the local player; fails outside a world |
CStrLocalUuid |
5 |
CStrLocalUuid is PIER_CSTR_LOCAL_UUID: Player::getUuid of the local player in its canonical form |
CStrLocalNameTag |
6 |
CStrLocalNameTag is PIER_CSTR_LOCAL_NAME_TAG: Actor::getNameTag of the local player |
CStrClipboard |
7 |
CStrClipboard is PIER_CSTR_CLIPBOARD: AppPlatform::getClipboardText, the system clipboard |
CAct*¶
| Name | Value | Description |
|---|---|---|
CActShowMessage |
0 |
CActShowMessage is PIER_CACT_SHOW_MESSAGE: sarg: text. GuiData::displayClientMessage |
CActSetTitle |
1 |
CActSetTitle is PIER_CACT_SET_TITLE: sarg: text. GuiData::setTitle is not exported by the client target. |
CActSetSubtitle |
2 |
CActSetSubtitle is PIER_CACT_SET_SUBTITLE: sarg: text. GuiData::setSubtitle is not exported by the client target. |
CActSetActionBar |
3 |
CActSetActionBar is PIER_CACT_SET_ACTION_BAR: sarg: text. GuiData::setActionBarMessage |
CActShowTip |
4 |
CActShowTip is PIER_CACT_SHOW_TIP: sarg: text. GuiData::showTipMessage is not exported by the client target. |
CActPlayUiSound |
5 |
CActPlayUiSound is PIER_CACT_PLAY_UI_SOUND: sarg: sound name, a: volume, b: pitch. IClientInstance::playUI |
CActGrabMouse |
6 |
CActGrabMouse is PIER_CACT_GRAB_MOUSE: IClientInstance::grabMouse |
CActReleaseMouse |
7 |
CActReleaseMouse is PIER_CACT_RELEASE_MOUSE: IClientInstance::releaseMouse |
CActSetInputDisabled |
8 |
CActSetInputDisabled is PIER_CACT_SET_INPUT_DISABLED: a: non-zero disables game input. IClientInstance::setDisableInput |
CActLeaveLevel |
9 |
CActLeaveLevel is PIER_CACT_LEAVE_LEVEL: IClientInstance::requestLeaveGame(true, false): leaves the world for the menus, asynchronously |
CActShowPopup |
10 |
CActShowPopup is PIER_CACT_SHOW_POPUP: sarg: message, optionally followed by subtitle after a newline. GuiData::showPopupNotice is not exported by the client target. |
CActShowDevConsoleMessage |
11 |
CActShowDevConsoleMessage is PIER_CACT_SHOW_DEV_CONSOLE_MESSAGE: sarg: text. GuiData::displayDevConsoleMessage is not exported by the client target. |
CActSetSuspendInput |
12 |
CActSetSuspendInput is PIER_CACT_SET_SUSPEND_INPUT: a: non-zero suspends input. IClientInstance::setSuspendInput |
CActSetSuspendDirectionalInput |
13 |
CActSetSuspendDirectionalInput is PIER_CACT_SET_SUSPEND_DIRECTIONAL_INPUT: a: non-zero suspends movement input. IClientInstance::setSuspendDirectionalInput |
CActSetGameInputEnabled |
14 |
CActSetGameInputEnabled is PIER_CACT_SET_GAME_INPUT_ENABLED: a: non-zero enables. IClientInstance::setInGameInputEnabled |
CActRefocusMouse |
15 |
CActRefocusMouse is PIER_CACT_REFOCUS_MOUSE: a: non-zero when the mouse was lost. IClientInstance::refocusMouse |
CActMuteAudio |
16 |
CActMuteAudio is PIER_CACT_MUTE_AUDIO: IClientInstance::muteAudio |
CActUnmuteAudio |
17 |
CActUnmuteAudio is PIER_CACT_UNMUTE_AUDIO: IClientInstance::unMuteAudio |
CActFadeOutMusic |
18 |
CActFadeOutMusic is PIER_CACT_FADE_OUT_MUSIC: IClientInstance::fadeOutMusic |
CActSetGuiScaleOffset |
19 |
CActSetGuiScaleOffset is PIER_CACT_SET_GUI_SCALE_OFFSET: a: the offset. IClientInstance::setGuiScaleOffset |
CActResetPlayerMovement |
20 |
CActResetPlayerMovement is PIER_CACT_RESET_PLAYER_MOVEMENT: IClientInstance::resetPlayerMovement |
CActPushLeaveGameScreen |
21 |
CActPushLeaveGameScreen is PIER_CACT_PUSH_LEAVE_GAME_SCREEN: IClientInstance::tryPushLeaveGameScreen |
CActOpenContentLogHistory |
22 |
CActOpenContentLogHistory is PIER_CACT_OPEN_CONTENT_LOG_HISTORY: IClientInstance::openContentLogHistory |
CActSetClipboard |
23 |
CActSetClipboard is PIER_CACT_SET_CLIPBOARD: sarg: text, empty allowed. AppPlatform::setClipboard |
CActNavigateHowToPlay |
24 |
CActNavigateHowToPlay is PIER_CACT_NAVIGATE_HOW_TO_PLAY: sarg: the topic, empty allowed. IClientInstance::navigateToHowToPlayScreen |