System Class - NocturnalWisp/Tynted-Engine GitHub Wiki

#Usage Used to create systems which control the behavior of the game in different ways.

Constructor

Summary Creates an instance of the System class.

Implementation

System()

Initialize (overridable)

Summary This is called when the game initializes the system.

Implementation

override Initialize()

Update (overridable)

Summary This is called each loop the game updates on this system.

Implementation

override Update(GameTime gameTime)

Vars

  • gameTime - The time represented struct.

Draw (overridable)

Summary This is called each time the game begins drawing this system.

Implementation

override Draw(RenderWindow renderWindow)

Vars

  • renderWindow - The SFML associated window to run draw calls upon.

Create Events

Summary Called after initialize, but before SubscribeEvents is called.

Implementation

override CreateEvents()

Subscribe Events

Summary Called after CreateEvents, but before the main loop starts.

Implementation

override SubscribeEvents()

Get Entities

Summary Returns a list of all entities the system has access to based off of the attributes the system has and the active entities in active scenes.

Implementation

GetEntities()

Returns List - All the entities the system can grab.

⚠️ **GitHub.com Fallback** ⚠️