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
protected new sound_memory_object(): sound_memory_object;Engine-created sound memory record.
Returns
sound_memory_object
Overrides
game_memory_object.constructor
Methods
object()
object(): game_object;Get the remembered object.
Returns
Remembered game object.
Remarks
The binding expects the native memory record to still point to a live object.
Inherited from
type()
type(): number;Get the engine sound type id.
Returns
number
Sound type id.
Properties
__name
readonly __name: string;LuaBind instance constructor name.
Inherited from
last_level_time
readonly last_level_time: number;Previous level time recorded for this memory entry.
Inherited from
game_memory_object.last_level_time
level_time
readonly level_time: number;Level time when this memory entry was last updated.
Inherited from
object_info
readonly object_info: object_params;Snapshot of the remembered object.
Inherited from
game_memory_object.object_info
power
readonly power: number;Remembered sound power.
self_info
readonly self_info: object_params;Snapshot of the object that owns this memory.
Inherited from
__name
readonly static __name: string;LuaBind class constructor name.