The base mod interface.
More...
#include <CSMAPI_BaseModInterface.h>
The base mod interface.
This class MUST be defined in a child class for every mod. It provides useful callbacks for mods.
◆ BaseModInterface()
BaseModInterface::BaseModInterface |
( |
| ) |
|
Default constructor.
- Note
- This does NOT call OnInit().
◆ ~BaseModInterface()
BaseModInterface::~BaseModInterface |
( |
| ) |
|
◆ DisableEveryoneDiedEvent()
virtual bool BaseModInterface::DisableEveryoneDiedEvent |
( |
| ) |
|
|
inlinevirtual |
Defines whether this mod should force the 'TestEveryoneDied()' to always return 'false'.
- Returns
- Should return 'true' if 'TestEveryoneDied()' should be forced to always return 'false'.
◆ GetIntroSequenceLength()
virtual int BaseModInterface::GetIntroSequenceLength |
( |
| ) |
|
|
inlinevirtual |
Define the length of the intro sequence in ticks.
- Returns
- Returns the length of the intro sequence, in ticks.
◆ HasIntroSequence()
virtual bool BaseModInterface::HasIntroSequence |
( |
| ) |
|
|
inlinevirtual |
Define whether this mod has an intro sequence or not.
- Returns
- Returns true if this mod has an intro sequence, false if not.
◆ IsMultiplayer()
virtual bool BaseModInterface::IsMultiplayer |
( |
| ) |
|
|
inlinevirtual |
Defines whether this mod supports multiplayer or not.
- Returns
- Returns true if this mod supports multiplayer, false if not.
◆ IsRevivingPlayersAllowed()
virtual bool BaseModInterface::IsRevivingPlayersAllowed |
( |
| ) |
|
|
inlinevirtual |
Define whether this mod allows reviving players.
- Returns
- Returns true if this mod allows reviving players.
◆ IsSingleplayer()
virtual bool BaseModInterface::IsSingleplayer |
( |
| ) |
|
|
inlinevirtual |
Defines whether this mod supports singleplayer or not.
- Returns
- Returns true if this mod supports singleplayer, false if not.
◆ OnEnterTitleScreen()
virtual int BaseModInterface::OnEnterTitleScreen |
( |
bool & |
bImmediateReturn, |
|
|
unsigned char & |
pAction |
|
) |
| |
|
inlinevirtual |
Called when the titlescreen is initialized.
- Parameters
-
bImmediateReturn | Set this to true to have the function who called this immediately return with this function's return value. Useful for custom titlescreens. |
- Returns
- Should return the next mode.
◆ OnInit()
virtual int BaseModInterface::OnInit |
( |
| ) |
|
|
inlinevirtual |
Called when the mod is initialized.
- Returns
- Should return 0 on success, non-zero on error.
The documentation for this class was generated from the following file: