Interface every mod DLL must implement.
More...
#include <IMod.h>
Interface every mod DLL must implement.
Lifecycle order:
Definition at line 62 of file IMod.h.
◆ OnInit()
| virtual bool IMod::OnInit |
( |
| ) |
|
|
pure virtual |
◆ OnLoad()
| virtual bool IMod::OnLoad |
( |
| ) |
|
|
pure virtual |
First call. Set up hooks, register commands here. Do NOT call game APIs (Level, Player, etc.) — use OnInit() for that.
- Returns
- false to abort this mod.
◆ OnUpdate()
| virtual bool IMod::OnUpdate |
( |
float | deltaTime | ) |
|
|
pure virtual |
Called every game tick (~20 times per second).
- Parameters
-
| deltaTime | Seconds since last tick (usually ~0.05). |
- Returns
- false to stop receiving ticks (not an error).
The documentation for this class was generated from the following file: