Skip to content

Class: sound_memory_object ​

Memory record for a heard object or sound event.

Source ​

C++ class sound_memory_object : game_memory_object

Custom Constructor ​

sound_memory_object

Remarks ​

Sound memory stores the object that produced or is associated with the sound plus the perceived sound type.

Extends ​

Constructors ​

Constructor ​

ts
protected new sound_memory_object(): sound_memory_object;

Engine-created sound memory record.

Returns ​

sound_memory_object

Overrides ​

game_memory_object.constructor

Methods ​

object() ​

ts
object(): game_object;

Get the remembered object.

Returns ​

game_object

Remembered game object.

Remarks ​

The binding expects the native memory record to still point to a live object.

Inherited from ​

game_memory_object.object


type() ​

ts
type(): number;

Get the engine sound type id.

Returns ​

number

Sound type id.

Properties ​

__name ​

ts
readonly __name: string;

LuaBind instance constructor name.

Inherited from ​

game_memory_object.__name


last_level_time ​

ts
readonly last_level_time: number;

Previous level time recorded for this memory entry.

Inherited from ​

game_memory_object.last_level_time


level_time ​

ts
readonly level_time: number;

Level time when this memory entry was last updated.

Inherited from ​

game_memory_object.level_time


object_info ​

ts
readonly object_info: object_params;

Snapshot of the remembered object.

Inherited from ​

game_memory_object.object_info


power ​

ts
readonly power: number;

Remembered sound power.


self_info ​

ts
readonly self_info: object_params;

Snapshot of the object that owns this memory.

Inherited from ​

game_memory_object.self_info


__name ​

ts
readonly static __name: string;

LuaBind class constructor name.

Inherited from ​

game_memory_object.__name