Skip to content

Class: store_operation_cb

Multiplayer callback binding for store_operation_cb.

Source

C++ class store_operation_cb

Custom Constructor

store_operation_cb

Remarks

Used by profile-store operations. Completion can report either numeric progress/status or boolean success.

Constructors

Constructor

ts
new store_operation_cb(object: object, cb: (this: object, code: number | boolean, description: string) => void): store_operation_cb;

Parameters

ParameterTypeDescription
objectobjectLua object used as callback this.
cb(this: object, code: number | boolean, description: string) => voidCalled with progress/result code and status description.

Returns

store_operation_cb

Methods

bind()

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

Replace the bound callback.

Parameters

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

Returns

void


clear()

ts
clear(): void;

Clear the bound callback.

Returns

void

Remarks

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