Enfusion Script API
Loading...
Searching...
No Matches
GameMode Interface Reference

[Configurable system] More...

Inheritance diagram for GameMode:
BaseSystem ScriptAndConfig Managed DeathmatchMode TeamDeathmatchMode

Public Member Functions

void Notify ()
 
- Public Member Functions inherited from BaseSystem
proto external World GetWorld ()
 Get the world associated to this system.
 
proto external void Enable (bool enable)
 
proto external bool IsEnabled ()
 
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.
 
- 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)
 

Static Public Member Functions

static override void InitInfo (WorldSystemInfo outInfo)
 

Protected Member Functions

override void OnInit ()
 Called when system are to be intialized.
 
- Protected Member Functions inherited from BaseSystem
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)
 
bool DependsOn (ESystemPoint point, BaseSystem system)
 Should return true for systems this system depends on. False otherwise.
 
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 (ESystemPoint point)
 Called every time system is allowed to tick.
 
void OnDiag (float timeSlice)
 

Detailed Description

[Configurable system]

[Class hierarchy example]

Member Function Documentation

◆ InitInfo()

static override void GameMode.InitInfo ( WorldSystemInfo outInfo)
static

Implements BaseSystem.

Implemented in DeathmatchMode, and TeamDeathmatchMode.

◆ Notify()

void GameMode.Notify ( )

Implemented in DeathmatchMode, and TeamDeathmatchMode.

◆ OnInit()

override void GameMode.OnInit ( )
protected

Called when system are to be intialized.

This always happens at any point when simulation decides to reinitialize the system without actually destroying it.

Implements BaseSystem.

Implemented in DeathmatchMode, and TeamDeathmatchMode.


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