Skip to content
Bannerlord Wiki
Share
Explore
GameStates and Handlers

Creating Custom GameStates

Procedure

Create a CustomStateHandler
public interface CustomStateHandler{}
In a new class, copy and paste the code below.
public class CustomState : GameState
{
private CustomStateHandler _handler;

public override bool IsMenuState
{
get { return true; }
}

public CustomStateHandler Handler
{
get { return this._handler; }
set { this._handler = value; }
}

}
Now Inherit the class as you please
public class CustomStateTwo : CustomState {}
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.