Skip to content

Class: suggest_nicks_cb

Multiplayer callback binding for suggest_nicks_cb.

Source

C++ class suggest_nicks_cb

Custom Constructor

suggest_nicks_cb

Remarks

Used by unique-nick suggestion requests.

Constructors

Constructor

ts
new suggest_nicks_cb(object: object, cb: (this: object, result: number, description: string) => void): suggest_nicks_cb;

Parameters

ParameterTypeDescription
objectobjectLua object used as callback this.
cb(this: object, result: number, description: string) => voidCalled with suggestion count and status description.

Returns

suggest_nicks_cb

Methods

bind()

ts
bind(object: object, cb: (this: object, result: number, description: string) => void): void;

Replace the bound callback.

Parameters

ParameterTypeDescription
objectobjectLua object used as callback this.
cb(this: object, result: number, description: string) => voidCalled with suggestion count and status description.

Returns

void


clear()

ts
clear(): void;

Clear the bound callback.

Returns

void

Remarks

After clearing, native completion has no Lua function to call.