Class ButterLibSubModule
- Namespace
- Bannerlord.ButterLib
- Assembly
- Bannerlord.ButterLib.dll
Main SubModule. Performs initialization of all 3 stages.
public sealed class ButterLibSubModule : MBSubModuleBase
- Inheritance
-
ButterLibSubModule
- Inherited Members
- Extension Methods
Constructors
ButterLibSubModule()
public ButterLibSubModule()
Properties
CanBeConfigured
public static bool CanBeConfigured { get; }
Property Value
Instance
public static ButterLibSubModule? Instance { get; set; }
Property Value
Methods
ConfigureBeforeInitialization(Action<IServiceCollection>)
The only way to inject your stuff before ButterLib will start it's initialization Can be used to inject a custom ButterLibOptions provider, but it needs to load before ButterLib
public static void ConfigureBeforeInitialization(Action<IServiceCollection> action)
Parameters
action
Action<IServiceCollection>
OnApplicationTick(float)
protected override void OnApplicationTick(float dt)
Parameters
dt
float
OnBeforeInitialModuleScreenSetAsRoot()
protected override void OnBeforeInitialModuleScreenSetAsRoot()
OnGameEnd(Game)
public override void OnGameEnd(Game game)
Parameters
game
Game
OnGameStart(Game, IGameStarter)
protected override void OnGameStart(Game game, IGameStarter gameStarterObject)
Parameters
game
GamegameStarterObject
IGameStarter
OnServiceRegistration()
public void OnServiceRegistration()
OnSubModuleLoad()
protected override void OnSubModuleLoad()
OnSubModuleUnloaded()
protected override void OnSubModuleUnloaded()
This page was last modified at 10/04/2024 11:27:01 +03:00 (UTC).
Commit Message
Author: Vitalii Mikhailov
Commit: 98b2786879bc1a06398803b840e05a5523711d12
Using collection expression