JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
Bannerlord Wiki
Bannerlord Wiki
Type
Global Tables
Campaign
More
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 (
Ctrl
P
) instead.