Skip to content

Default Systems

Thomaltarix edited this page Nov 3, 2024 · 1 revision

Here's a list of all default systems and what do they do:

DisplayConsumption, does:

  • Display computations (the CPU and RAM usage)

InitConsumption, does:

  • Initialize the consumption entity

UpdateConsumption, does:

  • Update the consumption entity

DisplayShaderInfo, does:

  • Display shader information (current shader and its intensity)

InitShaderInfo, does:

  • Initialize the shader information entity

UpdateShaderInfo, does:

  • Update the shader information entity

FullScreen, does:

  • Call the fullscreen handler

Gravity, does:

  • Apply gravity to all needed entities
  • Apply collision damage if it collides
  • Move hitboxes and models

LuaScript, does:

  • Parse a file named script in Game/GameData
  • Take the reg of our ECS
  • Create a sol state to execute in there, the Lua program freshly parse. (The program will have the reg in it)

Mouse, does:

  • Handle the Mouse position
  • Detect if he clicked on a button

MoveEntities, does:

  • Take all Entity with Position and Velocity
  • Apply their Velocity to their Position

Shaders, does:

  • Call the event shader handler

Typing, does:

  • Handle the keyboard input if a Text Button is clicked.