Enfusion Script API
Loading...
Searching...
No Matches
SndSystem Interface Reference
Inheritance diagram for SndSystem:
WorldSystem EventProvider ScriptAndConfig Managed

Public Member Functions

proto external vector GetListenerPos ()
 Returns actual listener position.
 
proto external SndWorld GetSndWorld ()
 Current the sound world - may be nullptr if SndWorld is not present in the world.
 
proto external SndBaseModule FindModule (TypeName type)
 Returns scripted module by class.
 
- Public Member Functions inherited from WorldSystem
proto external World GetWorld ()
 Get the world associated with this system.
 
proto external WorldSystems GetSystems ()
 Get world systems associated with this system.
 
proto external RplNode GetNode ()
 
proto external void Enable (bool enable)
 Enable/disable system.
 
proto external bool IsEnabled ()
 Returns true if system is enabled.
 
- Public Member Functions inherited from Managed
proto external ref Managed Clone ()
 Return shallow copy of object, or null if it is not allowed (not public constructor)
 

Additional Inherited Members

- Static Public Member Functions inherited from WorldSystem
static void InitInfo (WorldSystemInfo outInfo)
 
- Static Public Member Functions inherited from EventProvider
static proto bool ConnectEvent (func eventSender, func eventReceiver)
 Connects receiver callback to provider event.
 
static proto bool ConnectEventFiltered (func eventSender, func eventReceiver, void filter)
 Connects receiver callback to provider event.
 
static proto bool DisconnectEvent (func eventSender, func eventReceiver)
 Disconnect single event connection.
 
static proto bool DisconnectEventFiltered (func eventSender, func eventReceiver, void filter)
 Disconnect single event connection.
 
static proto bool DisconnectEvents (EventProvider provider, Managed receiver)
 Disconnect all connections between provider and receiver.
 
- Protected Member Functions inherited from WorldSystem
proto external void BeginUpdate ()
 The 4 functions below are designed so scripters can handle a batch update of multiple entities in a performant way.
 
proto external void Update ()
 
proto external void EndUpdate ()
 
proto external void AddEntity (notnull IEntity entity)
 
proto void Rpc (func method, void p0=NULL, void p1=NULL, void p2=NULL, void p3=NULL, void p4=NULL, void p5=NULL, void p6=NULL, void p7=NULL)
 Attempts to run a remote procedure call (RPC) of this instance with parameters specified in method RplRpc attribute.
 
bool DependsOn (WorldSystemPoint point, WorldSystem system)
 Should return true for systems this system depends on.
 
void OnInit ()
 Called when system are to be intialized.
 
void OnCleanup ()
 Called when system are to be cleaned up.
 
void OnStarted ()
 Called every time system is started (before the first run and after Enable(true) is called.
 
void OnStopped ()
 Called every time system is stopped (after Enable(false) is called and before the system is being destroyed.
 
void OnUpdate (WorldSystemPoint point)
 
void OnUpdatePoint (WorldUpdatePointArgs args)
 Called at specific points during World update.
 
void OnOneTimePoint (WorldOneTimePointArgs args)
 Called at specific one-time events during World lifetime.
 
void OnDiag (float timeSlice)
 
- Protected Member Functions inherited from EventProvider
proto external void ThrowEvent (func eventSender, void param1=null, void param2=null, void param3=null, void param4=null, void param5=null, void param6=null, void param7=null, void param8=null, void param9=null)
 Emit event on provider.
 

Member Function Documentation

◆ FindModule()

proto external SndBaseModule SndSystem.FindModule ( TypeName type)

Returns scripted module by class.

◆ GetListenerPos()

proto external vector SndSystem.GetListenerPos ( )

Returns actual listener position.

◆ GetSndWorld()

proto external SndWorld SndSystem.GetSndWorld ( )

Current the sound world - may be nullptr if SndWorld is not present in the world.


The documentation for this interface was generated from the following file: